OK have managed to align the right nav as well now. The problem appears to be that the way you where using padding and margins on the different elements of the page was not standardised in anyway. This made finding the offending margin/padding (and that is all it was) hard to find. I have standardised paddings and margins, the new style code is:
HTML Code:
<style type="text/css">
body, html {
margin: 0px;
padding: 0px;
}
#container
{
width: 100%;
margin: 0px;
color: #333;
position: relative;
background-color: #F5F5F5;
}
#top
{
width: 100%;
background-image: url(images/gamecube_02.jpg);
background-repeat: repeat;
padding: 0px;
height: 127px;
margin: 0px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CCCCCC;
border-top-style: none;
border-right-style: none;
border-left-style: none;
}
#top h1
{
padding: 0px;
margin: 0px;
}
div#leftnav
{
float: left;
width: 130px;
margin: 20px 0px 0px 10px;
}
div#rightnav
{
float: right;
width: 130px;
margin: 20px 10px 0px 0px;
}
#content
{
margin-left: 200px;
margin-right: 200px;
margin-top: 20px;
margin-bottom: 10px;
}
img.floatleft {
/*float: left;*/
position: absolute; left:0; top: 0;
z-index: 200;
}
img.floatright {
/*float: right;*/
position: absolute; right: 0; top: 0;
z-index:100;
}
dt {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: bold;
color: #000000;
background-image: url(images/gamecube_06.jpg);
background-repeat: repeat-x;
padding-left: 5px;
border: 1px solid #D8D5E1;
padding-top: 5px;
padding-bottom: 5px;
text-align: center;
}
#footer
{
clear: both;
margin: 0;
padding: 2px;
color: #000000;
background-color: #E4E4E4;
border-top: 1px solid #CCCCCC;
border-bottom-width: 1px;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-bottom-color: #999999;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
text-align: center;
}
dl {
background-color: #E6E6E6;
width: 128px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: #D8D5E1;
border-bottom-color: #D8D5E1;
border-left-color: #D8D5E1;
margin-left: 10px;
margin-bottom: 20px;
margin-top: 0px;
}
dd {
padding: 1px;
margin: 0px;
text-align: center;
}
a.even:link, a.even:visited {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: normal;
color: #000000;
display: block;
width: 100%;
text-decoration: underline;
background-color: #F3F3F3;
}
a.odd:link, a.odd:visited {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: normal;
color: #000000;
display: block;
width: 100%;
text-decoration: underline;
}
a.even:hover {
color: #FFFFFF;
text-decoration: none;
background-color: #590288;
}
a.odd:hover {
color: #FFFFFF;
text-decoration: none;
background-color: #590288;
}
div#content h2 {
position: relative;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #999999;
text-decoration: none;
background-image: url(images/gamecube_06.jpg);
background-repeat: repeat-x;
padding-top: 2px;
padding-right: 0px;
padding-bottom: 2px;
padding-left: 10px;
border: 1px solid #D8D5E1;
margin: 0px;
}
div#content p {
position: relative;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
color: #000000;
text-decoration: none;
background-color: #FFFFFF;
letter-spacing: 1px;
padding: 5px;
margin: 0px;
border-right: 1px solid #E0E0E0;
border-bottom: 1px solid #E0E0E0;
border-left: 1px solid #E0E0E0;
border-top-style: none;
}
</style>
While tracking this problem I used the trick of adding the following style:
Code:
div, p, h1, h2, h3, h4 {border: 1px solid black;}
to the bottom of the style sheet so that I could see everying.
If you do that to the original code it is easy to see the no-standard padding and margins on the nav left and right divs.
Bookmarks