Below is the structure of my HTML:
<div class="content">
<div class="icon"></div>
<div class="text">I have a long message that wraps into two lines.</div>
<div style="clear:both"></div>
</div>
Accompanied by the following CSS:
.content {width:300px; margin:30px auto; border:1px solid #000}
.icon {width:40px; height:40px; background-color:maroon}
.icon, .text {float:left}
I am seeking a way to align the icon and text components on the same line without the use of any relative or absolute width values.
You can view an example in this fiddle - http://jsfiddle.net/7kNSs/