Results 1 to 2 of 2
Apr 20, 2012, 12:05 #1
Can a floated child establish a full height left margin for its parent?
I have an image of width 150 pixels, whose parent container is set to float:left. I want the adjacent text to have a margin equal to the width+margin of the floated box, only if the floated box is present.
<div class="box"> <figure style="float:left; margin:10px 15px 0 0" /><img src="avatar.png" /></figure> <div class="description">Description goes here. I need it to not wrap under the floated image, just the right of it</div> </div>
Apr 20, 2012, 15:49 #2