Tell us what’s happening:
Describe your issue in detail here.
Your #navbar
element should always be at the top of the viewport. I think I did everything correctly, but still it is not working. can anyone help me out?
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Portfolio</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<section id="welcome-section" class="welcome">
<h1>WELCOME</h1>
<h4 id="info">Info about author</h4>
</section>
<section id="projects">
<div class="project-tile">
<a href="https://hdtoday.tv/">Project1</a>
</div>
</section>
<navbar id="navbar">
<a href="#info" id="info" >Info</a>
<header >ddjhdiljejghkuyjeelirfuahwatarbv</header>
</navbar>
<div>
<h2>
<a id="profile-link" href="https://personal-portfolio.freecodecamp.rocks/" target="_blank">My accounts</a></h2>
</div>
</main>
</body>
</html>
/* file: styles.css */
.welcome{
height: 100vh;
text-align: center;
padding:70px;
}
@media welcome{
color: green;
}
header{
position: fixed;
top: 0px;
width: 100%;
height: 19px;
padding: 15px 0px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Personal Portfolio Webpage - Build a Personal Portfolio Webpage