Hi guys,
I am having some problems with the navigation of this website I am involved with.
The issue I have is on the left hand side navigation. I can't get the buttons to sit neatly on the top of each other, it looks like there is some space between them (you can in fact see the background colour).
I have tried to use the padding option (I used a lot the W3C school website) but I don't seem to be getting it right. Is it an issue with the padding or what?
Here is the code for the CSS:
h1
{
text-align:left;
font-size: 1.7em;
font-family: Arial, Verdana, sans-serif;
}
#banner
{
background:#81A594 url(typewriter.jpg);
background-repeat:no-repeat;
background-position:right;
height:120px;
padding:10px 50px 0 200px;
}
/*This is for the left hand side navigation */
#navigation ul /* for the navigation, foreground is a2c1b2 and bg is f5d9d7*/
{
list-style: none;
padding: 0;
border: 0;
margin: 4em 0 0 0;
}
#navigation li
{
margin: 0 0 0 0;
border: 0 0 0 0;
}
#navigation ul li
{
background: #f4d8c7 url("box.jpg") repeat-x scroll center bottom;
height: 2.4em;
line-height: 3.5em;
width: 10em;
display: block;
text-decoration: none;
text-align: center;
font-family: Arial, Verdana, sans-serif;
padding:10px 0 10px 0;
}
/*This is the top navigation */
#topnav ul
{
list-style: none;
margin-left: 0px;
}
#topnav li
{
float: left;
margin: 0 1.5em 0 0;
font-family: Arial, Verdana, sans-serif;
}
body
{
background-color:#E6E6DC;
}
And here is the code for one of the pages:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Web editing</title>
<link rel="stylesheet" type="text/css" href="style.css" >
</head>
<body>
<!-- BANNER STARTS HERE -->
<div id="banner">
<h1>Web editing</h1>
</div>
<!-- BANNER ENDS HERE -->
<!-- TOP NAVIGATION STARTS HERE -->
<div id="topnav">
<ul>
<li>Home</li>
<li><strong>Our web standards</strong></li>
<li>Livelink issues and fixes</li>
<li>How to's</li>
<li>Do's and don'ts</li>
<li>Reference</li>
</ul>
</div>
<!-- TOP NAVIGATION ENDS HERE -->
<!-- LEFT HAND SIDE NAVIGATION STARTS HERE -->
<div id="navigation">
<ul>
<li>Headings</li>
<li>Documents</li>
<li>Content</li>
<li>Links</li>
<li>Images</li>
</ul>
</div>
<!-- LEFT HAND SIDE NAVIGATION ENDS HERE -->
</body>
</html>
And the graphics are attached
thanks