Tell us what’s happening:
Describe your issue in detail here.
I wasn’t able to do this ( Your #image
should be centered within its parent.) please help me.
**Your code so far**
/* file: index.html */
<link rel="stylesheet" href="styles.css">
<style>
body{
background-color: black;
color: white;
font-family: calibri;
}
</style>
<main id="main">
<h1 id="title">Asus ROG 6</h1>
<div id="img-div">
<a id="tribute-link" target="_blank" href="https://www.youtube.com/watch?v=NWV53FsWSpU">
<img id="image"src="https://www.mobiledokan.co/wp-content/uploads/2021/08/Asus-ROG-Phone-6-Pro.jpg" alt="gaming phone"
width="70%" height="40%">
</a>
<figcaption id="img-caption">Esports. Asus ROG has been an active advocate for esports, having established some of their very own professional gaming teams.</figcaption>
</div>
<p id="tribute-info">
<b>Best Asus Rog phone:</b>
<ul>
<li>ASUS ROG Phone 2</li>
<li>Asus ROG Phone 3 12GB RAM</li>
<li>Asus ROG Phone 5s Pro 5G</li>
<li>Asus ROG Phone 5 Pro</li>
</ul>
</p>
</main>
/* file: styles.css */
#img-caption
{
width: 400px;
}
#image
{
max-width: 100%;
height: auto;
display: block;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Responsive Web Design Projects - Build a Tribute Page
Link to the challenge: