Right floated div within a liquid-width div. How do I get this to work?
Posted
by DavidR
on Stack Overflow
See other posts from Stack Overflow
or by DavidR
Published on 2010-05-27T21:48:21Z
Indexed on
2010/05/27
21:51 UTC
Read the original article
Hit count: 246
I have a div, within the div is a name in an <h4>
tag (it's semantically correct with the layout) and a div with some values describing that <h4>
value. I want the nested div to be on the right side, and the only way I can get this to work is a fixed-width container and float: right;
. As you can guess, the object breaks when the value of the <h4>
causes the nested div to overflow. I've tried min-width
, but it ends up stretching to the maximum size of the div containing the container div.
© Stack Overflow or respective owner