I have a div container with a fixed width and height, with overflow: hidden.
I want a horizontal line float: left divs inside this container. Divs that float to the left will naturally be pushed to the βlineβ below, after they read the correct border of their parent. This will happen even if the height of the parent should not allow this. Here's what it looks like:
! [False] [1] - image of the deleted image that has been replaced by the ad
How I would like:
! [Right] [2] - image of the deleted image that has been replaced by the ad
Note. The effect I want can be achieved with inline elements and white space: no-wrap (this is how I did it in the image shown). This, however, is not good for me (for reasons too long to explain here), since child divs should be placed on block level elements.
html css alignment
Robin Barnes Aug 31 '08 at 21:05 2008-08-31 21:05
source share