Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:

Hi , please help. This is the personal portfolio. Where do I place my #navbar? It keeps on telling me that it’s wrong. Even with the header tags.

Personal Project

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 Project</title>
  </head>

<body>

  <nav id="navbar">
    <a href="#"></a>
  </nav>

  <div id="welcome-section">
    <h1>Hey I am Karabo</h1>
        </div>
          <div id="projects">
    <a href="#"><section class="project-tile"></section></a>
      </div>
      <div>
        <a target="_blank" id="profile-link"></a>
        </div>
        </body>
        </html>
/* file: styles.css */
@media only screen{
  html{
    background-color: yellow;
  }
  #navbar{
    display: flex;
    justify-content: center;
    position: fixed
  }
}

Your browser information:

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

Challenge Information:

Personal Portfolio Webpage - Build a Personal Portfolio Webpage

what error are you getting exactly?

it says:
Failed:12. Your #navbar element should always be at the top of the viewport.

try moving the css related to that outside the media query

I tried and it didn’t work

you have fixed the navbar, but you did not specify the position, maybe you want to use one of bottom, top, right, left for that

It worked! Thank you sooooo much!!