Tribute Page - Build a Tribute Page

Tell us what’s happening:
Describe your issue in detail here.
I keep getting this mistakes and I don;t know what did I get wrong…
. Your #img-div , #image , #img-caption , #tribute-info , and #tribute-link should all be descendants of #main .
.You should have a figure or div element with an id of img-div .
Your #image should be a descendant of #img-div .

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang='en'>
<head>
     <meta charset='utf-8'/>
     <meta name='viewport' content='width=device-width, initial-scale=1.0'/>
     <link rel='stylesheet' href='styles.css'/>
     <title>Tribute to Dr. Norman Borlaug</title>
</head>
<body>
    <main id='main'>
      <div><h1 id='title'>Dr. Norman Borlaug</h1>
      </div>
      <div id='image-div'>
       <img id='image' src='' alt='Dr. Norman Borlaug'/>
       <div id='img-caption'>
         <p>Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.</p>
       </div>
      </div>
      <h2 id='tribute-info'>Here's a timeline of <a target='_blank' id='tribute-link' href='#'>Dr. Borlaug's</a> life:</h2>
    </main>
</body>
</html>
/* file: styles.css */
image {max-width: 100%;
height: 100%;
justify-content: center;}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Hello and welcome.

Look this. Is it the correct id?

Then, review your styles.css
1.- you have a wrong selector. (tip: perhaps the beggining is # What do you think?)
2.- the height of the image should be auto
3.- the display of the image should be block

Check your code.

Grets.

Check your code.

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