I am having a problem coding my web site, Please see attached screenshot for a visual.
Here is the css and HTML code
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#nav_bar {
height: 50px;
width: 350px;
margin: 0px;
padding: 0px;
}
#nav_bar li {
margin: 0px;
padding: 0px;
list-style-type: none;
display: inline;
text-align: center;
float: left;
height: 50px;
}
#nav_bar a {
display: block;
height: 50px;
}
#nav_bar a:hover {
background-color: #CCC;
}
-->
</style>
</head>
<body>
<div id="nav_bar">
<ul>
<li id="home"><a href="#">Home</a></li>
<li id="about"><a href="#">About Us</a></li>
<li id="gallery"><a href="#">Gallery</a></li>
<li id="contact"><a href="#">Contact</a></li>
</ul>
</div>
</body>
</html>
If you can see by the pic the boxes are not lining up and are throwing the whole navigation system off..... Any help would be appreciated...
Tim