Tribute Page - Build a Tribute Page

Tell us what’s happening:

I can’t figure out why it says I don’t have the proper codes for these following instructions.
Your img element should have a display of block .
Your #image should have a max-width of 100% .
Failed:Your #image should be centered within its parent.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<link rel="stylesheet" href="styles.css">
<main id="main">
  <header id="title">Dr. Norman Borlaug</header>
  <figure id="img-div">
    <img id="image" display="block" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg">
    <figcaption id="img-caption">Image description</figcaption>
    <p id="tribute-info">Tribute description</p>
    <a id="tribute-link" target="_blank" href="" value=""></a>
  </figure>
</main>

  

/* file: styles.css */
image {
  max-wight:100%;
  height:auto;
  align:center;

}

Your browser information:

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

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!

Welcome to the community @travisjohm !

The img selector with its property and value are not present in CSS.

Please check the #image selector? Is it an element, or an id selector?

Please check the spelling of max-width?

align is not a valid property.

This guide could help you resolve this problem.

I hope this helps you

Keep up the good progress and happy coding! :sun_with_face:

2 Likes