View Full Version : Margin: 0; ignored

08-07-2008, 02:42 PM

You can see the page I'm working on here


Everything is OK but I can't get the content aligned with the top of the page with body margin 0.

Well I can but as soon as I add my unordered list to the HTML it pulls away from the top.

How can I prevent this?

08-07-2008, 03:07 PM
set a 0 top-margin on your ul list.

08-07-2008, 03:48 PM
Dom I could kiss you mate, that's been pissing me off most of the afternoon, you know when you've been looking at code all day and the more you look at it the more it just looks like a load of confusing letters and numbers.

Thanks mate.

08-07-2008, 06:09 PM
hehe you're welcome. I had a similar issue this morning, and the third guy that was trying to help me out went "Is there a reason why there's no doctype on this document".. duh!

08-07-2008, 08:25 PM
Its so satisfying though when you finally get things working.

Thanks mate.