Horizontal Nav : Navigation Bar « CSS Controls « HTML / CSS






Horizontal Nav

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Horizontal Nav</title>
<style type="text/css">
ul {
  margin: 0;
  padding: 0;
  float: left;
  width: 720px;
  list-style: none;
  text-transform: uppercase;
}

ul li {
  float: left;
}


ul a {
  padding: 0 2em;
  line-height: 2.1em;
  text-decoration: none;
  color: #fff;
  float: left;
  display: block;
}


ul a:hover {
  color: #333;
}


ul .first a {
  background: none;
}

</style>
</head>

<body>

<ul>
<li class="first"><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Clients</a></li>
<li><a href="#">Case Studies</a></li>
</ul>

</body>
</html>

   
  








Related examples in the same category

1.Left navigation bar
2.One column with top navigation bar
3.Right navigation bar
4.Left bar menu
5.Horizontal menu
6.Expandable left bar
7.CSS tab based navigational bar
8.Nested List style
9.Styled tab navigation
10.Negative Margins example
11.Horizontal navigation bar with anchor and list
12.Horizontal menu with list
13.Using image only as the top navigation bar
14.Vertical Navigation
15.Horizontal Navigation
16.Highlight top navigation link when mouse hover
17.Links navigation at the bottom
18.One level top navigation bar
19.Navigation bar with selected item