css navigation bar

CSS
<ul>

 
<li><a href="default.asp">Home</a></li>

 
<li><a href="news.asp">News</a></li>

 
<li><a href="contact.asp">Contact</a></li>

 
<li><a href="about.asp">About</a></li>

</ul>
 ul {
  list-style-type: none;
  margin: 0;
  padding: 0;

    overflow: 
hidden;
  background-color: #333;
}

li {
  
float: left;
}


li a {
  display: block;
  
color: white;
  text-align: center;
  
padding: 14px 16px;
  text-decoration: none;
}


/* Change the link color to #111 (black) on hover */
li a:hover {
  background-color: 
#111;
} 
Source

Also in CSS: