Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:
Pls how do i make my nav items to be beside each other i have tried display: flex its not working.

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>Samuel's Portfolio Page</title>
    </head>
    <body>
      
        <nav id="navbar">
      <ul>
          <li><a href="#About">About</a></li>
          <li><a href="#Work">Work</a></li>
          <li><a href="#Contacts">Contacts</a></li>
        </ul>
        </nav>
      </body>
  </html>
/* file: styles.css */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}
body {
  background: #f5f6f7;
  color: #1b1b32;
  font-family: Helvetica;
  margin: 0;
}

#navbar {
  width: 100%;
  background: linear-gradient(#400C0C,#903535);
height: 40px;
 position: absolute;
 display: flex;
 top: 0;
  align-items: left;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0

Challenge: Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Link to the challenge:

You need to target the unordered list for it to work.

#navbar ul {

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