Tell us what’s happening:
My CSS code for body as well as hr and section didn’t pass. I couldn’t find what is wrong. Thanks for help.
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">
<title>Build an Event Flyer Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<img src="https://cdn.freecodecamp.org/curriculum/labs/event.jpg">
<h1>Festival of Ibrahim Aldessouky</h1>
</header>
<main>
<section>
<h2>Entertainment Activities</h2>
<p>There will be ِTheater performance</p>
<hr>
</section>
<section>
<h2>Festival Contests</h2>
<p>There will be cultural contests</p>
<hr>
</section>
<section>
<h2>Celebrity Visitors</h2>
<p>A number of celebrities will give speeches</p>
<hr>
</section>
</main>
</body>
</html>
/* file: styles.css */
header img {
display: block;max-width: 100%;
height: auto;
}
body {
padding-top: 50px;
padding-bottom: 50px;
margin: 0px, auto;
width: 100vw;
min-height: calc(100vh - 100px);
}
main {
width: 100%;
}
hr, section {
width: 90%;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Challenge Information:
Build an Event Flyer Page - Build an Event Flyer Page