Tell us what’s happening:
Describe your issue in detail here.
Your code so far
im having issues with the tribute page
(img should have s display of block
img should have max width of 100%
and the img should be centered within its parent element
ive tried everyhting and its just not working
<!-- file: index.html -->
<!DOCTYPE html>
<html LANG="en">
<head>
<title >Tribute page</title>
</meta charset="UTF-8">
</meta name="viewport" content=" width=device-width, initial-scale=1.0"
</meta name="description" content="tribite page"
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
<main id="main">
<h1>Dr.Norman Borlaug</h1>
<p id="title">The man who saved countless lives</p>
<div id="img-div">
<img id="image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg" />
<div id="img-caption">
<p >Dr Norman borlaug trains biologists on how to increase wheat yields</p>
</div>
</div>
<p id="tribute-info" >Norman Ernest Borlaug was an American agronomist who led initiatives worldwide that contributed to the extensive increases in agricultural production termed the Green</p>
<a id="tribute-link" target="_blank" href="https://tribute-page.freecodecamp.rocks/"></a>
</main>
</body>
</html>
/* file: styles.css */
img {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto;
}
#img-div {
padding: 10px;
margin: 0;
}
#img-caption {
margin: 15px 0 5px 0;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Challenge: Tribute Page - Build a Tribute Page
Link to the challenge: