<Style type = "text/CSS">
HTML, body
{
Margin: 0;
Padding: 30px 10px;
Text-align: center;
}
# Outer
{
Width: 780px;
Margin: auto;
Text-align: left;
Border: 1px solid #000;
}
# Outer
{
Overflow: hidden;
Position: relative;
}
. Navwrap
{
Float: left;
Position: relative;
Left: 50%;
Text-align: left;
Margin-bottom: 2em;
}
. Navwrap ul
{
List-style: none;
Position: relative;
Left:-50%;
Margin: 0;
Padding: 0;
}
. Navwrap Li
{
Border: 1px solid # eff2df;
Float: left;
Margin: 0 10px 0 0;
Background: #809900;
}
. Navwrap Li. Last
{
Margin-Right: 0;
}
. Navwrap Li
{
Float: left;
Border: 1px solid #4c7300;
Position: relative;
Left:-2px;
Top:-2px;
Background: # eff2df;
Color: #4c7300;
Text-Decoration: none;
Padding: 6px 10px;
Font-weight: bold;
}
. Navwrap Li A: hover
{
Background: #809900;
Color: # FFF;
}
P
{
Clear: both;
Padding: 10px;
}
H1
{
Text-align: center;
Margin: 1em 0;
}
. Clearer
{
Height: 1px;
Overflow: hidden;
Margin-top:-1px;
Clear: both;
}
</Style>
<Body>
<Div id = "outer">
<H1>
Welcome to webdm.cn <Div class = "navwrap">
<Ul>
<Li> <a href = "/"> button 1 </a> </LI>
<Li> <a href = "/"> button 2's a webdm.cn </a> </LI>
<Li> <a href = "this" _ mce_href = "http://www.webdm.cn"> This "> http://www.webdm.cn"> This is button 3 </a> </LI>
<Li> <a href = "#"> B 4 </a> </LI>
<Li> <a href = "/"> jquery demos </a> </LI>
<Li class = "last"> <a href = "/"> Ajax </a> </LI>
</Ul>
</Div>
<Div class = "Clearer">
</Div>
<! -- Ie needs this clearer -->
<Div class = "navwrap">
<Ul>
<Li> <a href = "#"> Asp codes </a> </LI>
<Li> <a href = "hello" _ mce_href = "http://www.webdm.cn"> hello "> http://www.webdm.cn"> Hello world! </A> </LI>
<Li class = "last"> <a href = "/"> webdm.cn </a> </LI>
</Ul>
</Div>
<Div class = "Clearer">
</Div>
<! -- Ie needs this clearer -->
</Div>
</Body>
Code from: http://www.webdm.cn/webcode/2cf486f4-d179-420b-88ab-f6f33d37bf6e.html