A Div with a floating Div inside, won't fit to the content
Posted
by EBAGHAKI
on Stack Overflow
See other posts from Stack Overflow
or by EBAGHAKI
Published on 2010-04-14T00:00:24Z
Indexed on
2010/04/14
0:03 UTC
Read the original article
Hit count: 316
html
|div-layouts
<div style="background-color:black">
<div style="float:right">
Test message
</div>
<div>
This will show 'Test message' with white background because the parent div didn't fit the content.
How can achieve that? (without using table, or display:table since it's not supported in IE)
© Stack Overflow or respective owner