Navigation Bar
JoshuaBrown31 (6)

I need help, or the exact code, for a horizontal nav bar in html.

You are viewing a single comment. View All
IntellectualGuy (848)

Here's the HTML code

<nav>
   <ul>
      <li>Home</li>
      <li>About Us</li>
      <li>Out Services</li>
      <!--Change the text based on your website, and if you want links just add anchor elements-->
   </ul>
</nav>

And here's the CSS

nav li {
  /*Change the values to whatever you want*/
  list-style-type:none;
  display:inline-flex;
  margin-right:50px;
}
nav li:last-child {
    margin-right:0px;
}
nav {
  background-color:black;
  color:white;
  padding:4px;
}