Simple Tab Menu with UL LI : tab « CSS Controls « HTML / CSS

Simple Tab Menu with UL LI


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title>Simple Tab Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
ul {
  list-style: none;

#outer {
  background: #88B3AD;
  padding: 10px;
  margin: 10px;

#content {
  width: 700px;
  min-height: 300px;
  border: 1px solid #ccc;

ul#tab {
  line-height: 2em

ul#tab a {
  color: #fff;
  background: red;
  border: 1px solid #aaa;
  text-transform: uppercase;
  border-bottom: none;
  position: relative;
  padding: 3px 10px 4px;
  top: 2px;
  text-decoration: none;

ul#tab a:hover,ul#tab a.current {
  background: #669;
  color: #FFE6B7;
  padding-bottom: 5px;

ul#subnav {
  background: #669;
  height: 2em;
  color: white;
  padding: 5px 5px;

ul#subnav li,ul#tab li {
  display: inline

ul#subnav a {
  color: white;
  text-decoration: none;

ul#subnav a:hover {
  color: #FFE6B7

<div id="outer">
  <ul id="tab">
    <li><a class="current" href="#">Home</a></li>
    <li><a href="#">About us</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">links </a></li>
  <div id="content">
    <ul id="subnav">
      <li><a href="#">Link One</a> |</li>
      <li> <a href="#">Link 2</a> |</li>
      <li> <a href="#">Link 3</a> | </li>
      <li> <a href="#">Link 4</a> </li>


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.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