Tribute Page - Build a Tribute Page

Tell us what’s happening:

Describe your issue in detail here.
The part that is not passing "X " Your img element should have a display of block .
I have tried inputting.
img { display: block; }
I have actually fixed the issue with nesting an attribute into the image like this !
styles=“display: block;”
This fixes the “X " Your img element should have a display of block
However, when I nest the attribute into the image it then makes it so i get a new” X "on a previously check marked part of my test run. The new “X” Your #image should be centered within its parent.
I have tried to add a new <div
I have used text-align: center; in my Css
There must be something that i am not seeing??? in order to fix both.
The "# " to corresponding element selectors. Am i supposed to use s different selector. am i not targeting the right element selector.
I am not sure if i am describing my problem so i can get a hint that will give me a solution here.
Not sure how to show the code for an issue that goes back and forth. Fix it one way and a new problem pops up! I’m not understanding how a fix can affect a part that has already been check marked as correct.

Your code so far

<!-- file: index.html -->
 <body> 
   <style display: block;> 
   </style>
   <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
 <main id="main" 
  <title>  Tribute Page BCI Brain Computer Interface </tilte> 
  <h1 id="title"> Brain Computer Interface   </h1> 
<figure> <div type="#img-div" id="img-div"> </figure>  
<selection id="img-div">
  <img  id="image" src="https://www.opensourceimaging.org/wp-content/uploads/Open-Source-Imaging-OpenBCI-Featured-Headset.png" 
   alt="computer device,with multiple straps around computer generated mannequin head" class="responsive" rel="stylesheets" href="style-css" > 
   <div style="display: block;" style="display: block;" 
  <div id="img-div"
  <div id="image-caption"> 
  <div 
   id="title"> 
  <div id="tribute-info"> Open Source Info 
    </div>
    </div>
    </div>
    </div>
  </div> 

  
  
  
  

  <figcaption id="img-caption"> Research in brain computer interface technology will change how people interact with technology.
</figcaption> 


  <h2> Brain Computer Interface Biotechnology  </h2> <div id="tribute-info"> </div>
  <p> Brain computer interface biotechnology has many potential implications in a varity of ecosystems! </p> 

  <section id=""
  <h3> Potential ecosystems that may be impacted by BCI </h3> 

    <ul> 
      <li> 
        Medical biotechnology
        
        </li> 
        <li> 
          Educational Technology
          </li>
        <li>       Information technology
          </li> 
          <li> 
            Virtual reality 
            </li> 
            <li> Law Enforcement 
              </li>
              <li> 
                 The applications
       have       Limitless potential 
                </li>
      </ul>
  

<a href="https://en.wikipedia.org/wiki/Brain%E2%80%93computer_interface"id="tribute-link" target="_blank"> </a> 
</selection>
</main> 
</body> 
/* file: styles.css */
#main {
  margin: auto;
  padding: 20px;
  border-radius:

} 

h1 { 
  text-align: auto;
  display: block;
  max-width: 100%;
}

h2 { 
  text-align: auto;
  display: block;
  max-width: 100%;
} 
h3 { 
  text-align: center;
   display: block;
  max-width: 100%;
} 


selection { 
  text-align: center;
 display: block;
  max-width: 100%;
}
#title { 
  display: color; 
  background: blue;
  height: auto;
text-align: auto;
} 

img { 
  display: block;
  max-width: 100%; 
  display: block;
  height: auto; 
  margin: 0 auto;
}   
#image { 
  dispaly: block;
  max-width: 100%;
}
#img-div { 
  background: blue;
  padding: 20px; 
  margin: 0; 
  display: block;
}


img-caption { 
  display: block;
  text-align: center;
} 
body { 
  text-align: center;
  display: block;
} 


@media { (max-width: 459)
{ 
  img-caption 
  { 
font-size: 1.4rem;
} 
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0

Challenge Information:

Tribute Page - Build a Tribute Page

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Kindly, I suggest you be careful with how you write your code, do not just complete the exercises for the sake of completing. Use the correct boilerplate, make sure your elements are opened and closed properly, and link your CSS to HTML correctly. If you decide to use an external CSS file, use only that do not mix them. Like right now, you have all your links, meta tags and the title inside the body element which shouldn’t be the case. Also, try organizing your code. If you want to use an element but you’re unsure of it, better to research than use a non-existing element. Most of the mistakes you have are due to wrongly organized code and wrongly linked CSS files.

I have been thinking that as well, Thanks.
It has been a bit of a mess for this project because migrating the code, to code pen, it is not asking to use my normal set of elements.
And there is almost no instruction on how to fix certain issues, so I’ve been tinkering around with the code to see what will work. That way i can get to the next part of the project and migrate the code-to-code pen.
Do you see what my actual issue is regarding the problem.
When I fix on part of the code it then makes another part incorrect. or in this case not centered.

Yeah, the photo itself actually contained an iframe !
AND as we all know iframes are not allowed !

Changed the photo and that was not the issue!
so, any hint would be appreciated!

If you are having difficulties using Codepen, why don’t you use the FCC code editor?

Let me see your updated code.

I actually deleted the CSS, I’m going to work on it and re post.

I have tried to ask for help on this topic, but it is not showing up on the forum. and when i try to show my code here only a small part of it gets displayed. at this point i have asked researched, it seems like I have done the #image max-width 100% just as it’s being asked.
Id like to learn why its not working ?

<main id="main" Tribute Page BCI Brain Computer Interface

Brain Computer Interface

<figure id="img-div"> 
  <img src="https://www.caddytrek.com/wp-content/uploads/2018/12/Master-Your-Mental-Game-With-Muse.jpg" 

id=“image” style=“display: block;”
class=“responsive” rel=“stylesheets” href=“style-css” height=“auto”
width=“100%”>
<div id=“img-div”





Open Source Info

      </div>
    </div>
  </div>
  </div>

  <figcaption id="img-caption"> Research in brain computer interface technology will change how people interact with technology.
  </figcaption>

Brain Computer Interface Biotechnology

Brain computer interface biotechnology has many potential implications in a varity of ecosystems!

  <section id="" <h3> Potential ecosystems that may be impacted by BCI </h3>

    <ul>
      <li>
        Medical biotechnology

      </li>
      <li>
        Educational Technology
      </li>
      <li> Information technology
      </li>
      <li>
        Virtual reality
      </li>
      <li> Law Enforcement
      </li>
      <li>
        The applications
        have Limitless potential
      </li>
    </ul>

    <a href="https://en.wikipedia.org/wiki/Brain%E2%80%93computer_interface" id="tribute-link" target="_blank"> </a>
</selection>

What I learned from being stuck for so long! On what seemed to be code written exactly as it was being asked, it was not properly correlated with the proper element. When i fixed my boilerplate and associated my code to the right Areas. The code then ran as expected. I read the hints that stephenmutheu gave me, but i did not actually follow through with each element and attribute. Then the <div associated with each element, understanding the placement and correlation to my actual problem. I was fixated on #image should have max-width 100%, as the only issue that I had. I am not convinced that i actually had the max-width: 100%; written wrong. When I changed the placement of code within the right container, correlating it to “” #image should have max-width 100%. It then solved my problem. so, when reading hints that don’t work as soon as you try them go deeper and try them again. Read the hint again if it did not correct the issue.

You finally got it. Organized code can bring so much impact.
Continue doing the great work. Happy coding, friend.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.