Tell us what’s happening:
“Your Product Landing Page should use CSS Flexbox at least once.”
i’ve tried so many different combinations in the styelsheet but none worked.
Your code so far
<!-- file: index.html -->
<!doctype html>
<html>
<link rel="stylesheet" src="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<header id="header">
<img id="header-img" src="https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.freepik.com%2Ffree-photos-vectors%2Flogo&psig=AOvVaw3Ryc3VTi4NMBtUco8yxl-p&ust=1714634262741000&source=images&cd=vfe&opi=89978449&ved=0CBAQjRxqFwoTCKDe2cL064UDFQAAAAAdAAAAABAE">
</img>
<nav id="nav-bar">
<button class="nav-link" href="#home">home</button>
<button class="nav-link" href="#browse">browse</button>
<button class="nav-link" href="#about">about</button>
</nav>
<p>some arbitrary sentence</p>
<video id="video" controls>
<source src="link" type="video/mp4" mute>
</video>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input id="email" placeholder="email@email.com etc..." type="email" name="email"></input>
<input id="submit"type="submit"></input>
</form>
<p id="home">this is home </p>
<p id="browse">browsing area</p>
<p id="about"> idk megan fox lol</p>
</header>
</meta>
</html>
/* file: styles.css */
.nav-bar {
position: fixed;
top: 0px;
}
header {
display: flex;
}
@media only screen and (max-width: 700px) {
p {
font-size: 6rem;
}
}
p {
display: flex;
align-items: center;
justify-content: space evenly;
flex-wrap: wrap;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Challenge Information:
Product Landing Page - Build a Product Landing Page