Horizontal tab bar : tab « CSS Controls « HTML / CSS






Horizontal tab bar

   


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
     <head>
      <meta http-equiv="content-type" content="text/xhtml; charset=windows-1252" />
      <meta http-equiv="content-language" content="en-us" />
        <style type="text/css">
            ul#navigation {
                list-style: none;
                background: gray;
                margin: 0.1em;
                padding: 0;
            }
            ul#navigation li {
                float: left;
                margin: 0.4em;
            }
            ul#navigation li a {
                padding: 0.3em;
            }
            ul#navigation li a:link {
                background: gray;
            }
            ul#navigation li a:active {
                background: orange;
            }
            ul#navigation li a:visited {
                background: black;
            }
            ul#navigation li a:hover, li a:focus {
                background: white;
                color: black;
            }

        </style>
    </head>
    <body>
        <ul id='navigation'>
            <li><a href=''>home</a></li>
            <li><a href=''>contact us</a></li>
            <li><a href=''>products</a></li>
            <li><a href=''>services</a></li>
            <li><a href=''>faq</a></li>
        </ul>

    </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.CSS only tab bar with content
8.Simple Tab Menu with UL LI
9.Tab list box
10.CSS tab
11.Image tab menu 1
12.Image tab menu 2
13.Image tab menu 3
14.Image tab menu 4
15.Image Tab menu 5
16.Image tab menu 6
17.Tab pages
18.Tab menu bar with image
19.Tab like top menu bar
20.Pure css based top tab menu
21.Footer with tab menu
22.Top tab menubar
23.Tab menu bar
24.Tab 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