Fieldsets Floating in IE7
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:
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?
padding:0 1em 1em 1em;
padding:0 10px 10px 10px;
There's a stripped-down version of the page at http://www.weddingpastorsusa.org/des..._editform.html. Any help would be greatly appreciated.
Specify a width on the columns (display: inline-block might do it, but I'm thinking IE7 needs a width).
Yeah, that works. I was trying to avoid that because I couldn't find any info about how wide a fieldset actually is. After some experimentation, though, it looks like it's width + padding + 4px, at least in the browsers I'm able to test in. So I added a width to both column divs and removed the margin-right on #colLeft. Thanks for the help.
It's still weird that the fieldsets would float, though. I wouldn't have thought that would be normal behavior for a block-level element.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)