Previous Message
Next Message

DIV won't float: right as intended (resolved)

Sent by Philippe Wittenbergh on 12 February 2012 23:11


On Feb 13, 2012, at 6:20 AM, Tim Dawson wrote:

>> I have been trying for several hours to get a DIV containing four
>> absolutely positioned images to 'float: right' up beside a left column
>> which is floated left.
>> 
>> http://webadit.co.uk/cakelady2/?page=wedding
>> 
> Why is it that the moment one posts something to this list the solution dawns ?
> It looks as if adding 'overflow:hidden' to the styling of the LEFT column has made it work. But
can anyone explain why, please ?

Your right floated div can't go higher than where it is now - although you specify a width on the
left column,the object still occupies the full space.

The solution is to float (left) the left column.

I've no idea why it would work with 'overflow: hidden' on your side (it really shouldn't and it
doesn't in WebKit / Gecko browsers).

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: