Charles wrote:
I'm a CSS beginner trying to re-do my church's web site from its present
table-based layout. I have a "rough draft" of an index page, very possibly
to be extensively changed, here:
http://www.allsaintsofamerica.org/test/index.html
http://www.allsaintsofamerica.org/test/assets/allsaints.css
I want to put some "white space" between the navbar, which is in a #header
div, and the dive below it, the #main div. A top margin in #main works fine
in IE6 but it disappears in Firefox.
While fooling around I discovered that if the <img> is absent in the #header
div, all of a sudden I get my white space (but I want the image). I don't
know if that's a clue or not, but it's consistent.
================
Hi Charles,
first off, to help debug it the first thing I tried was to give your #main a
background-color: yellow;
If you try that it'll immediately tell you where your missing margin goes to
in Firefox - it's right at the top of the page, even above the image in the
header.
This is because you floated your header div - not sure why you wanted to do
that, but taking it out should help you.
That doesn't fix the whole problem I realise - the nav is also taking up
that margin.
Perhaps if you added a simple <br> to the HTML with the style of break:
both; on it that would do the trick.
Cheers,
Dan.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/