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