Hi, I have no idea why my content doesnt center, why itts display isnt changing to block. Also, I have written the entire code under main, so how come it isnt a direct descendant of the main ?
Your code so far
<!-- file: index.html -->
<html>
<main id="main">Build a Tribute Page
<div id="img-div">
<img id="image" ></img>
<div id="img-caption">Tribute</div>
<p id="tribute-info">Welcome</p>
<a href="" target="_blank" value="" id="tribute-link"></a>
</div>
</main>
<head>
<link rel="stylesheet" href="styles.css">
<title id="title">Tribute</title>
</head>
<body></body>
</html>
/* file: styles.css */
.image-div {
max-width: 100%;
height: auto;
margin: 0 auto;
align-items: center;
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/109.0.0.0 Safari/537.36
Challenge: Tribute Page - Build a Tribute Page
Link to the challenge: