Forum Moderators: not2easy
CSS code:
#menu_box{
width:675px;
margin:0 auto;
}
#menu_box ul{
padding: 0;
margin: 0;
}
#menu_box li{
float: left;
list-style-type: none;
}
#menu_box a{
text-align:center;
display: block;
font: 900 9pt arial;
width:125px;
text-decoration:none;
color:#ffffff;
background-color:#000075;
padding:4px 4px;
border:1px solid #ffffff;
}
#menu_box a:hover{
background-color:#850000;
}
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css" title="Default">
</head>
<body>
<center>
<div id="menu_box">
<ul>
<li><a href="index.htm">Home</a></li>
<li><a href="archives.htm">Archives</a></li>
<li><a href="why.htm">Why</a></li>
<li><a href="links.htm">Links</a></li>
<li><a href="contact.htm">Contact Me</a></li>
</ul>
</div>
</center>
<hr>
</body>
</html>
div.hr {
clear: both;
height: 1px;
font-size 0;
background: #000;
}
hr {
display: none;
}
<div class="hr"><hr /></div>
An extra element, but you get to keep the semantic weight of the <hr /> and get decent cross-browser compatibility.