Tell us what’s happening:
Describe your issue in detail here. i am having difficulties with this step- “Your #image should be centered within its parent”.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html LANG="en">
<main id="main">
<title id="title">Tribute to Mama</title>
<div id="img-div">
<image id="image"></image>
<div id="img-div"></div>
<figcaption id="img-caption">Mama's Picture</figcaption>
<tribute id="tribute-info">Tribute to the love of my life.</tribute>
<a id="tribute-link"target="_blank" href=""></a>
<link rel="stylesheet"href="styles.css">
</div>
</main>
/* file: styles.css */
body{margin: 0;padding: 0;box-sizing: border-box;}
main{display: flex col;}
img{display: block;margin-left: 0;margin-right: 0;max-width: 100%;}
figure{width: auto;object-fit: center;align-items: center;}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Challenge Information:
Tribute Page - Build a Tribute Page