why is mozilla ignoring the margin settings?
ive got a page with a menu at the top and content under it. i want a 50px space between the menu and the content. heres my code:
in IE it shows up perfect. but in mozilla, there is no space at all. why is it ignoring the margin settings?
border: 5px solid #000000;
Is the menu floated by any chance?
IE is 10 years behind web standards. Never, ever use IE as a reference for how things should work.
yes, the logo and menu above are floated left and right - thats why i put clear:both for the content to cancel the float.
Originally Posted by Centauri
Give the menu or logo a margin-bottom:50px remove the margin-top: 50px; from content.
This would probably be better:
Read the links I gave; knowing the box model is essential to CSS layout.
<div style="overflow:hidden; margin-bottom:50px;">
ah cool Fang, that fixed it. thanks for the links too.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)