Click to See Complete Forum and Search --> : Div gaps


Poegle
12-30-2004, 10:45 PM
Hi guys,
Im having a bit of bother with a navigation div on my homepage.
I have valid xhtml 1.1 on the page im using, and valid css, but heres the navigation div css:


#navigation {
width:700px;
height:30px;
margin:0px;
padding:0px;
background-color: #6f0000;
}


When ive changed the colours on the page, the navigation div has a gap above it between the head div. Does anyone know how to fix this? Heres the link to it so you can have a look:

http://www.vagusnet.com/John/John/own/index.html

Thanks John

MstrBob
12-30-2004, 10:48 PM
I believe the margin is from your Unordered list. So, try this:

#navigation ul {
margin:0;
}

Poegle
12-31-2004, 10:41 AM
Thanks MstrBob that worked a treat :)