Personal Portfolio Webpage - Build a Personal Portfolio Webpage

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

How do I go about 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>
    <nav id="navbar">
      <a href="#welcome-section">Welcome</a>
      <a href="#projects">Projects</a>
      <a href="#contacts">Contacts</a>
      </nav>
  <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>
  
 <footer>
    <a id="profile-link" href="https://github.com/your-github-Kobby12371" target="_blank">View my GitHub profile</a>
  </footer>
  </body>
  <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>
</video>
/* file: styles.css */
 #navbar {
            background-color: #333;
            color: #fff;
            padding: 10px;
            position: fixed;
            top: 0;
            width: 100%;

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

Hi @Khin-Kay

Please check the file name for the css.

Happy coding

2 Likes

Thanks bro
it worked. I ommitted an ā€œsā€ in the code.

1 Like

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