I have three tickets that does not working:
1- Your img
element should have a display
of block
: (I used display:block).
2- Your #image
should have a max-width
of 100%
: (I used: max-width: 100%)
3- Your #image
should be centered within its parent :(I used margin: auto)
that is supposedly to be “easy”, but its does working
what can I do?
**Your code so far**
/* file: index.html */
<main id="main">
<div id="title">
<p>"Dr. Norman Borlaug"</p>
</div>
<figure id="img-div">
<figcaption id="img-caption">
<p>este es img-caption</p>
<img id="image">
</figcaption>
</figure>
<div id="tribute-info">
<p>Este es tribute-info</p>
</div>
<a id="tribute-link" href="" target="_blank">sss
</a>
</main>
/* file: styles.css */
#main img {
display: block;
}
#image {
max-width: 100%;
height: auto;
margin: 0 auto;
}
img-caption{
margin: 0 auto;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71
Challenge: Responsive Web Design Projects - Build a Tribute Page
Link to the challenge: