We would like to know how to create css tab menu.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--from www.j av a 2 s. co m-->
display: none;
background: #1E90FF;
margin: 0px;
font-size: 50px;
}
:target {
display: block;
}
body {
background: lightskyblue;
text-align: center;
}
a {
background: #1E90FF;
color: lightskyblue;
text-decoration: none;
font-size: 50px;
margin: 0px 1px 0px 1px;
}
</style>
</head>
<body>
<a href="#A">A</a>
<a href="#B">B</a>
<a href="#C">C</a>
<div id="A">
AAAAAA<br>AAAAAA
</div>
<div id="C">
CCCCCC<br>CCCCCC
</div>
<div id="B">
BBBBBB<br>BBBBBB
</div>
</body>
</html>
The code above is rendered as follows: