Float right and width of inline-block element

Go To StackoverFlow.com

0

http://jsfiddle.net/zerkms/4zJyw/1/

In all major browsers, except of IE7, the example works as expected - the parent div has total width of 100px, but in IE7 in some reason it stretches for all width.

And this happens only if v element has float: right

What am I missing?

2012-04-05 00:21
by zerkms


1

The only way I could sort this out was to use position:relative on the parent, and position:absolute; right:0 on the div with the 'v' inside it.

2012-04-05 00:33
by ScottE
Ads