Skip to content Skip to sidebar Skip to footer

Legend Doesn't Float Left On Ie7

I am having trouble on IE7. I have following html format.
Legend
Div 1

Solution 1:

Andres almost had it. Add a "*float: none" after the "float: left" and you should be good.

.wrapper.ct {
    display:inline-block;
    float:left;
    *display:inline;
    *float:none;
}​

Here's the updated fiddle

Solution 2:

IE does not understand display:inline-block, you can use display:inline instead with a hack to target that browser alone, like so:

.wrapper.ct {
    display:inline-block;
    *display:inline;
    float:left
}

Solution 3:

For IE7 only, try setting to display: inline (not inline-block).

Right, forgot how much a pain legend is. You likely need to use absolute position to place it as such - with a left margin on the others or padding-left on the parent. Depends on the design.

Post a Comment for "Legend Doesn't Float Left On Ie7"