Tab bar : tab « CSS Controls « HTML / CSS






Tab bar

  

<!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>
<title></title>
<style type="text/css">
#navsite h5 {
 display: none;
}
#navsite ul {
 padding: 3px 0; 
 margin-left: 0; 
 border-bottom: 1px solid #778; 
 font: bold 12px Verdana, sans-serif; 
}
#navsite ul li {
 list-style: none;
 margin: 0; 
 display: inline; 
}
#navsite ul li a {
 padding: 3px 0.5em; 
 margin-left: 3px; 
 border: 1px solid #778;
 border-bottom: none;
 background: #dde;
 text-decoration: none;
}
#navsite ul li a:link {
 color: #448;
}
#navsite ul li a:visited {
 color: #667;
}
#navsite ul li a:link:hover, #navsite ul li a:visited:hover {
 color: #000;
 background: #aae;
 border-color: #227;
}
#navsite ul li a#current {
 background: white; 
 border-bottom: 1px solid white;
}
</style>
</head>
<body>
   <div id="navsite">
   <h5>Site navigation:</h5>
   <ul>
    <li><a href="/">Home</a></li>
    <li><a href="/about/">About</a></li> 
    <li><a href="/archives/">Archives</a></li>
    <li><a href="/writing/">Writing</a></li>
    <li><a href="/speaking/" id="current">Speaking</a></li> 
    <li><a href="/contact/">Contact</a></li>
   </ul>
  </div>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus vitae ligula ut metus interdum accumsan. Vivamus commodo. Etiam eros massa, hendrerit hendrerit, ultricies facilisis, porttitor eget, magna. Fusce lacus ligula, dapibus sed, mattis id, tristique non, arcu. Vivamus feugiat. Etiam erat pede, posuere placerat, porttitor vitae, sollicitudin ut, tellus. Nunc volutpat velit blandit enim. Nulla luctus. In viverra nibh ac massa. Curabitur vel tellus a velit feugiat tristique. Mauris ultricies cursus diam. Nullam scelerisque blandit pede. Maecenas tellus velit, pellentesque placerat, tincidunt nec, tempus at, tellus. Quisque sapien. Nullam eget ante at mi consequat mattis. Nunc accumsan tincidunt ipsum. Sed adipiscing tincidunt lorem. Mauris arcu. Vestibulum laoreet augue.</p>
  
</body>
</html>

   
    
  








Related examples in the same category

1.Simple Tab Menu
2.Use UL and LI to create tab bar
3.Tab menu with bottom bar highlight
4.Tab bar with bottom image
5.Anchor based tab
6.Dynamic tab without javascript
7.Horizontal tab bar
8.CSS only tab bar with content
9.Simple Tab Menu with UL LI
10.Tab list box
11.CSS tab
12.Image tab menu 1
13.Image tab menu 2
14.Image tab menu 3
15.Image tab menu 4
16.Image Tab menu 5
17.Image tab menu 6
18.Tab pages
19.Tab menu bar with image
20.Tab like top menu bar
21.Pure css based top tab menu
22.Footer with tab menu
23.Top tab menubar
24.Tab menu bar
25.Variable-Width Tab Navigation
26.Fixed-Width Tab Navigation
27.Tab like top layout bar
28.Card layout with top tab menu bar
29.Tab like top menu bar 2
30.Tab menu bar with round corner