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">
  <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">
    <section id="welcome-section">
<h1>Welcome to My portfolio </h1>
    <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>
    <nav id="navbar">
      <a href="#welcome-section">Welcome</a>
      <a href="#projects">Projects</a>
      <a href="#contacts">Contacts</a>
    <a id="profile-link" href="" target="_blank">View my GitHub profile</a>
/* 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/ 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="" 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.
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