Why will my navigation menu not center?

jlcpcnc

Baseband Member
Messages
28
Location
United States
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HMC Paving Company Inc.</title>
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<style type="text/css">
/* BeginOAWidget_Instance_2102522: #navigation */
ul#navigation {
	position: relative;
	margin: 0px;
	padding: 0px;
	top: 0px;
	list-style: none;
	z-index:999999;
	width:auto;
      }
      ul#navigation li {
      display:inline;
      float:left; 
      width:102px;   
      }
      ul#navigation li a {
      display: block;
      float:left;
	  color:#000000;
      margin-top: -2px;
      height: 25px;
      width:100px;
      background-repeat:no-repeat;
      background-position:50% 10px;
      background-color:#E7F2F9;
      border:1 solid #BDDCEF;
      -moz-border-radius:0px 0px 10px 10px;
      -webkit-border-bottom-right-radius: 10px;
      -webkit-border-bottom-left-radius: 10px;
      -khtml-border-bottom-right-radius: 10px;
      -khtml-border-bottom-left-radius: 10px;
      text-decoration:none;
      text-align:center;
      padding-top:80px;
      opacity: 0.7;
      filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);  
      }
      
      ul#navigation li a:hover{
      background-color:#CAE3F2;
      }
      ul#navigation .home a{
      background-image: url(/png/settings.png);
      }
      ul#navigation .about a{
      background-image: url(/png/notes.png);
      }
      ul#navigation .search a{
      background-image: url(/png/notes.png);
      }
      ul#navigation .podcasts a{
      background-image: url(/png/ipod.png);
      }
      ul#navigation .rssfeed a{
      background-image: url(/png/weather.png);
      }
      ul#navigation .photos a{
      background-image: url(/png/maps.png);
      }
      ul#navigation .contact a{
      background-image: url(/png/chat.png);
      }
/* EndOAWidget_Instance_2102522 */
</style>
<script type="text/xml">
<!--
<oa:widgets>
  <oa:widget wid="2102522" binding="#navigation" />
</oa:widgets>
-->
</script>
</head>
<body>
<ul id="navigation">
  <li class="home"><a href="">Home</a></li>
  <li class="about"><a href="">About</a></li>
  <li class="photos"><a href="">Photos</a></li>
  <li class="rssfeed"><a href="">Rss Feed</a></li>
  <li class="contact"><a href="">Contact</a></li>
</ul>
<script type="text/javascript">
// BeginOAWidget_Instance_2102522: #navigation
$(function() {
      var d=300;
      $('#navigation a').each(function(){
      $(this).stop().animate({
      'marginTop':'-80px'
      },d+=150);
      });
      $('#navigation > li').hover(
      function () {
      $('a',$(this)).stop().animate({
      'marginTop':'-2px'
      },200);
      },
      function () {
      $('a',$(this)).stop().animate({
      'marginTop':'-80px'
      },200);
      }
      );
      });
// EndOAWidget_Instance_2102522
</script>

</body>
</html>
 
Back
Top Bottom