Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:
Describe your issue in detail here.
It says navigation bar (#navbar) should be at top of the viewport. so it is there. but code doesn’t pass.
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 project</title>
  </head>
  <body>
    <nav id="navbar">
      <ul><li><a href="#welcome-section">About</a></li>
      <li><a href="#projects">Work</a></li>
      <li><a href="#Contacts">Contacts</a></li></ul>
    </nav>
    
      <div id="welcome-section">
      <h1>Hey I am Mimic</h1>
      <h3>a web developer</h3>
    </div>
    <div id="projects">
      <h3><u>These are some of my projects</u></h3>
      <div class="project-tile" >
        <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg">
        <p><a href="https://codepen.io/freeCodeCamp/full/zNqgVx">Tribute page</a></p>
</div>
      <div class="project-tile">
        <img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/random-quote-machine.png">
        <p><a href="https://codepen.io/freeCodeCamp/full/qRZeGZ">Random quoto machine</a></p></nav>
    </div>
    <div id="Contacts">
<h1>Let's work together...</h1>
<h6>How do you take your coffee?</h6>
<img src="#GITHUB">
<a href="https://github.com/freecodecamp" id="profile-link" target="_blank">GIT HUB</a>
    </div>
  </body>
  </html>
/* file: styles.css */
@media screen and (min-width: 480px){
  body{
    color: black;
  }
}
#navbar{
  background-color: red;
  color: white;
}
#welcome-section{
  background-color: black;
  color:white;
  text-align: center;
}
#projects{
  background-color: Darkblue;
  color: white;
  text-align: center;
  
}
#nav{
  height: 100vh;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

Try specifying the padding-top property to 0px for the navbar and the body element. Same for the margin-top too.

It’s not working …but thank you so much for the comment…

hello and welcome to fcc forum :slight_smile:

add “top: 0” and also remove “padding and margin” as well, happy learning :slight_smile:

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