PDA

View Full Version : top margin problem



bushbass
10-24-2003, 09:25 AM
would someone be so kind as to check this page for me and see if you can help me figure out how to get the top margin to be the same in IE and mozilla? I know, that may be impossible but hey, it's worth a try. Thanks in advance for your help!

http://www.bushwackers.org/member/openhouse2004.html

It looks just right in IE but I can't get the top margin correct in mozilla.

carbonize
10-24-2003, 09:48 AM
Simply put IE uses a margin where as Opera/Mozilla/Netscape all use padding. So you need ot add padding: 0;. Basically IE actually renders the body element x amount of pixels from the edge so we change this by using margin, the others have the body element going right upto the edge but then use padding to, well, pad it.

I did notice some errors in your css. The errors being you have two body properties and you do not have a ; to close the last attribute of each element.