mobilebadboy
12-25-2006, 02:34 AM
I decided this old dog needed to learn some new tricks, so I just finished doing an entire layout with divs instead of tables. I'm surprised this is my first trip here about this, but I made it to the end and got within 99.X% of the same table layout.
Anyhoo, I got down to the footer and am having a bit of an issue. I've got a header div, with a main div below that, it has a left and right div inside it. Now below that main div I'm trying to add the footer div.
If I add margin-top to the footer CSS, I get the appropriate margin between the main div and the footer div in IE. In Firefox it is still flush with the bottom of the main div. If I add a br style="clear:both" tag between the 2 divs, I then get the appropriate margin in Firefox, but an additional line break in IE. A break tag with no style results in the same in IE, still flush in Firefox (with the clear:both added to the CSS).
Any ideas?
<div id="header"></div>
<div id="bodywrap">
<div id="leftcontent"></div>
<div id="rightcontent"></div>
</div>
<div id="footer"></div>
#bodywrap { width:750px; margin-top:7px }
#footer { clear:both; width:750px; margin-top:7px; padding:3px 0px 3px 0px }
Anyhoo, I got down to the footer and am having a bit of an issue. I've got a header div, with a main div below that, it has a left and right div inside it. Now below that main div I'm trying to add the footer div.
If I add margin-top to the footer CSS, I get the appropriate margin between the main div and the footer div in IE. In Firefox it is still flush with the bottom of the main div. If I add a br style="clear:both" tag between the 2 divs, I then get the appropriate margin in Firefox, but an additional line break in IE. A break tag with no style results in the same in IE, still flush in Firefox (with the clear:both added to the CSS).
Any ideas?
<div id="header"></div>
<div id="bodywrap">
<div id="leftcontent"></div>
<div id="rightcontent"></div>
</div>
<div id="footer"></div>
#bodywrap { width:750px; margin-top:7px }
#footer { clear:both; width:750px; margin-top:7px; padding:3px 0px 3px 0px }
