Tell us what’s happening:
I don’t know where I’m going wrong. It says to add width percentage to both the section & hr element, which I did, but It’s not passing the test. I’m stuck on the last two steps
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Build an Event Flyer Page</title>
</head>
<body>
<header>
<img src="https://sl.bing.net/b95PCx0xaOO" alt="happy puppies"></img>
<h1>Pet Adoption</h1>
</header>
<main>
<section>
<h2>Come down and meet your next new furry friend!</h2>
</section>
<section>
<h2>From cats to dogs all are ready to find their furever home!</h2>
<hr></hr>
</section>
</main>
</body>
</html>
/* file: styles.css */
/* file: styles.css */
body{
padding-top: 50px; padding-bottom: 50px;
margin-top: 0;
margin-bottom: 0;
margin-right: auto;
margin-left: auto;
width: 100vw;
min-height: calc(100vh - 100px);
hr {
width: 100%;
}
section {
width: 100%;
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0
Challenge Information:
Build an Event Flyer Page - Build an Event Flyer Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-event-flyer-page/build-an-event-flyer-page