Tribute Page - Build a Tribute Page

Tell us what’s happening:
It is telling me that I have not meet the follow requirements but they are there.

Are they in the wrong spot? I have changed this thing so many times now.

Your code so far

<body>
    <main id="main">
      <h1 id="title">Dr. Martin Luther King Jr.</h1> 
      
      <figure id="img-div">
        <img 
          id="image" 
          src="https://i0.wp.com/www.tbae.co.za/blog/wp-content/uploads/2013/09/Martin-Luther-King-Quotes.jpg?resize=640%2C408&ssl=1"
          >
        <figcaption id="img-caption">
          Dr. Martin Luther King Jr. <em>I Have A Dream!</em>
        </figcaption>
      </figure>

#image {
  object-fit: contain;
  border-radius: 10px;
  max-width: 100%;
  display: block;
  height: auto;
  margin: auto;
}

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

HI @jdrjr10 !

Welcome to the forum!

Your failing all of the tests that involve CSS.
Did you post all of your code?
Because it looks like there are parts missing from the screenshot.

Also, are you sure you linked the css file to your HTML file correctly?
I would suggest double checking that is correct

Yes it is linked correctly. The code in question is below the screenshot.

It accepted the height requirement of auto but the display, max-width, and center requirements were not recognized. The code is in the same tag.

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