Topic: Menu cannot be in center
Hi
I have a CSS UL list menu
But I cannot make it in center.
It can be at right of the page or at left but not in center.
My code is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Horizantal DropDown Menu</title>
<style type="text/css">
<!--
.hormenu {
list-style-type: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
width: 90%;
display: inline;
font-size: 12px;
text-align: center;
margin: 0px;
padding: 0px;
}
.hormenu li a {
font-size: 12px;
text-decoration: none;
display: block;
margin: 0px;
padding: 7px;
background-color: #016F70;
color: #FFFFCC;
text-align: center;
float: left;
}
.hormenu li a:hover {
font-size: 12px;
text-decoration: none;
display: block;
margin: 0px;
padding: 7px;
background-color: #FFCC4A;
color: #006464;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<ul class="hormenu">
<li> <a href="#">Home</a></li>
<li><a href="#"> About us </a></li>
<li><a href="#">Downloads</a></li>
<li><a href="#">Photos Gallery</a></li>
<li><a href="#">Contact us</a></li>
</ul>
</body>
</html>Am I missing or code?
