Fieldsets Floating in IE7
Posted: Mon Feb 27, 2012 6:36 pm
I've got a really weird situation happening in IE7, and I can't figure out what I could possibly be doing wrong. I've got two divs on a page - one floating left, the other right. Each div contains two fieldsets, none of which are floated. This is the general setup:
HTML
CSS
Everything lines up perfectly in IE8, FF3.6 and Chrome, but in IE7 (actually, IE8 in Compatibility Mode) #serviceArea floats to the left of #defineArea (or vice-versa) in #colRight, and #colLeft gets pushed down below the now-too-wide #colRight. Since fieldsets are block-level elements, how can they be floating, especially when I explicitly set them to float:none?
There's a stripped-down version of the page at http://www.weddingpastorsusa.org/design ... tform.html. Any help would be greatly appreciated.
HTML
Code: Select all
<div id="colRight">
<fieldset id="serviceArea">
...
</fieldset>
<fieldset id="defineArea">
...
</fieldset>
</div>
<div id="colLeft">
<fieldset id="profile">
...
</fieldset>
<fieldset id="profileBio">
...
</fieldset>
</div>Code: Select all
#colLeft {
float:left;
margin-right:15px;
}
#colRight {
float:right;
}
fieldset {
padding:0 1em 1em 1em;
margin-bottom:1em;
}
fieldset#defineArea,
fieldset#serviceArea {
float:none;
width:230px;
padding:0 10px 10px 10px;
}There's a stripped-down version of the page at http://www.weddingpastorsusa.org/design ... tform.html. Any help would be greatly appreciated.