Simple Tab Menu : tab « CSS Controls « HTML / CSS

Simple Tab Menu


<!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">
#outer {
  background: #bbb;
  padding: 10px;

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

* html #content {
  height: 300px;

#tab {
  line-height: 2em

#tab a {
  color: #fff;
  padding: 0 10px;
  border: 1px solid #fff;
  text-transform: uppercase;
  border-bottom: none;
  position: relative;
  top: 4px;
  height: 20px;
  text-decoration: none;
  top: 2px;
  height: auto;
  padding: 3px 10px 4px;

#tab a:hover {
  background: #bbb

#tab a.current {
  background: #aaa;
  color: #ddd;

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

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

#subnav a:hover {
  color: red
<div id="outer"> 
  <div id="tab">
    <a class="current" href="#">Home</a> 
    <a href="#">About us</a> 
    <a href="#">Contact</a> 
    <a href="#">links </a>

  <div id="content"> 
    <div id="subnav">
       <a href="#">Link 1</a> | 
       <a href="#">Link 2</a> | 
       <a href="#">Link 3</a> | 
       <a href="#">Link 4</a> 



Related examples in the same category

1.Use UL and LI to create tab bar
2.Tab menu with bottom bar highlight
3.Tab bar with bottom image
4.Anchor based tab
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