Tell us what’s happening:
- Your body should use calc to set its min-height to 100vh - 100px.
I have it set to body{min-height calc(100vh-100px);
what am i missing - It’s the only step that i am missing
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://cdn.freecodecamp.org/curriculum/labs/event.jpg" alt='flags'>
<h1>Event Title</h1>
</header>
<main>
<section><h2>Sponsors</h2></section>
<hr>
<section><h2>Locations</h2></section>
</main>
</body>
</html>
/* file: styles.css */
body{padding: 50px 50%;
width:50vw;
margin: 0 auto;
min-height: calc(l00vh - 100px);
}
hr, section {width:50%;}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Challenge Information:
Build an Event Flyer Page - Build an Event Flyer Page