Build an Event Flyer Page - Build an Event Flyer Page

Tell us what’s happening:

I used an HTML & CSS validator and both came out correct, yet I am still failing

Failed:10. Your body element should have a top and bottom padding of 50px.

Failed:11. Your body element should have a top and bottom margin of 0.

Failed:12. Your body element should have a left and right margin of auto.

Failed:13. Your body element should set its width using vw.

Failed:14. Your body should use calc to set its min-height to 100vh - 100px

Failed:16. The width of your hr elements should be set using a percent value.

Failed:17. The width of your section elements should be set using a percent value.

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>
</head>

<body>
<header>
  <img src="https://cdn.freecodecamp.org/curriculum/labs/event.jpg" alt="freecodecamp img">
  <h1>Event </h1>
</header>
<main>
  <section>
    <h2>Party</h2>
  </section>
  <hr>
  <section>
    <h2>Presents</h2>
  </section>
  </main>
</body>

</html>
/* file: styles.css */
body{
  padding: 50px 0px;
  margin: 0px auto;
  width: 100vw;
  min-height: calc(100vh - 100px)
}

hr{
  width: 40%;
}

section{
  width: 40%
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

Challenge Information:

Build an Event Flyer Page - Build an Event Flyer Page

do you need to link your css to your html?

Lol I completely forgot about this thank you for noticing!