Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:
Describe your issue in detail here.
where should I place the navbar on top of the viewport
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>
  </head>
  <body>
    <main>
      <nav id="navbar">
        <a href="#"></a>
      </nav>
      <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 {
  
}

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:

you need to create a selector for your navbar and set the top property to 0 and the position property to absolute

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