Try creating a css class for a <div> container for the whole page (header, content and footer). This way, all your absolute positions and float properties will be included in that container.
Next, in the navbar class, you got
float:right;
margin-left:-225px;
If you tell it to float right, there's no need to specify a left margin.
Another thing: sicne you're telling the #nav container to float right, tell the <img> element to float left. That way they won't overflow throughout the header.
Nichito
Posting Virtuoso
1,602 posts since Mar 2007
Reputation Points: 424
Solved Threads: 57
try wrapping everything into a
<div class="wrapper">
...
</div>
container, with the following properties (or you can play with your own):
.wrapper
{
width:1000px;
left:0;
right:0;
margin-left:auto;
margin-right:auto;
}
Next, remove the margin-right from your nav menu.
The wrapper will act as a margin guide for the rest of the document, so the alignment for the elements will therefore be automatic.
Nichito
Posting Virtuoso
1,602 posts since Mar 2007
Reputation Points: 424
Solved Threads: 57