Personal Portfolio Webpage - Build a Personal Portfolio Webpage

  • Failed:Your portfolio should use at least one media query.

  • Failed:Your #navbar element should always be at the top of the viewport.

How do I solve This please

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>My Portfolio</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main>
    <section id="welcome-section">
<h1>Welcome to My portfolio </h1>
    </section>
    <section id="projects">
      <div class="project-tile">
        <h2> My First Project</h2>
        <p>This is my first personal portfolio</p>
        <a href="#">View Project<a>
          </div>
          </section>
    </main>
    <nav id="navbar">
      <a href="#welcome-section">Welcome</a>
      <a href="#projects">Projects</a>
      <a href="#contacts">Contacts</a>
      </nav>
 <footer>
    <a id="profile-link" href="https://github.com/your-github-Kobby12371" target="_blank">View my GitHub profile</a>
  </footer>
  </body>
/* file: styles.css */
#navbar {
    position: fixed;
    top: 0;
    background-color: #f1f1f1;
    padding: 20px;
    z-index: 1000;
    width: 100%;
}

@media only screen and (max-width: 600px) {
    #navbar {
        position: sticky;
    }
}

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

Hey I just used this after the html closing tag.

<video controls />

<source src="https://www.youtube.com/embed/8Ryn7qm3CvI" allowfullscreen> title="Video Games: The Movie" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>
Your browser does not support the video tag.
</video>
I think the nav bar issue is just a matter of putting on the top after the body tag.

The navbar is still not working

Just a typo in the link to the style sheet:

Should be styles.css with a plural sā€™.
Good luck!

1 Like

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