Anchor based tab : tab « CSS Controls « HTML / CSS






Anchor based tab

   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Styling &lt;body&gt;</title>
  <style type="text/css" media="screen">
  .container {
    width: 500px;
    padding: 15px;
    margin: 3px 0 20px 0;
    border: 1px solid #ccc;
    background: #fff;
  }
  
  #nav {
    margin: 0;
    padding: 0 0 20px 10px;
    border-bottom: 1px solid #9FB1BC;
  }
  
  #nav li {
    margin: 0; 
    padding: 0;
    display: inline;
    list-style-type: none;
  }
    
  #nav a:link, #nav a:visited {
    float: left;
    font-size: 10px;
    line-height: 14px;
    font-weight: bold;
    padding: 0 12px 6px 12px;
    text-decoration: none;
    color: #708491;
  }
  

  #nav a:hover { 
    color: #000; 
  } 

  </style>
</head>

<body id="spag">


<div class="container">

<ul id="nav">
  <li id=""><a href="#">Item 1</a></li>
  <li id=""><a href="#">Item 2</a></li>
  <li id=""><a href="#">Item 3</a></li>
  <li id=""><a href="#">Item 4</a></li>
</ul>

</div>


</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.Dynamic tab without javascript
6.Horizontal tab bar
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