Personal Portfolio Webpage - Build a Personal Portfolio Webpage

**Tell us what’s happening:**Please what is the hint for my last line of code that is setting the navbar on top the viewport.
Describe your issue in detail here.

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>Personal Portfolio Webpage</title>
    <header>
      <nav id="navbar">
        <a href="#projects">Projects</a>
      </nav>
    </header>
  </head>

  <body>
    <main>
      <section id="welcome-section">
        <h1>Hey Welcome to HASHCODE technologies</h1>
        <h1>We develop all kinds of website</h1>
      </section>
      <section id="projects">
        <h1 class="project-tile">These are some of my projects</h1>
        <a></a>
      </section>
      <a id="profile-link" target="_blank"></a>
    </main>
  </body>
</html>
/* file: styles.css */
* {
  padding:0;
  margin:0;
}

body {
  background-color:rgb(0,125,125);
margin:50px;
}
@media only screen {
  
}

#navbar {
 top:0%;
  position:absolute;
}

Your browser information:

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

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

i think it should be top: 0 not 0% and position: fixed should work.

Edit: also the navbar should not be in the head element.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.