I have a html structure like this:
<div class="content">
<div class="icon"></div>
<div class="text">Some long message text which is wrapped in two lines.</div>
<div style="clear:both"></div>
</div>
and corresponding css:
.content {width:300px; margin:30px auto; border:1px solid #000}
.icon {width:40px; height:40px; background-color:maroon}
.icon, .text {float:left}
I want to align icon and text componenent in one line without using any relative and absolute width value.
Here is a fiddle - http://jsfiddle.net/7kNSs/