...

View Full Version : Image float question



kyllle
02-27-2009, 12:16 PM
Hi all,

Very simple question that I dont know the answer to;

I have an image and text, I float the image to the left and want the text to be on the right of this but with no wrapping round the image, how do I prevent the text from wrapping?


<div style="width: 600px;">
<img src="large-190x100.jpg" width="190px" height="100px" style="float: left; padding: 10px;"/>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras risus mi, hendrerit eu, rutrum ac, ornare eu, dui. Aliquam sit amet sem. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Maecenas placerat orci eu nisi. Duis ac felis imperdiet metus pharetra iaculis. Pellentesque enim. Vestibulum vulputate lectus ac mauris. In in dui eu turpis elementum luctus. Praesent nulla ante, pharetra sit amet, condimentum convallis, rhoncus ut, justo. Nunc erat. Cras viverra fermentum justo. Ut vitae metus. Donec tincidunt magna. Donec eget est. Phasellus malesuada. Aenean non mi et est molestie blandit. Proin facilisis ultrices est. Cras eu dolor fermentum ipsum convallis hendrerit. In luctus, velit et interdum gravida, orci risus cursus est, eget accumsan nulla libero vel libero. In at enim et arcu pharetra convallis. </p>
</div>

abduraooft
02-27-2009, 12:26 PM
p{
margin-left:190px;
}

kyllle
02-27-2009, 12:28 PM
Thanks abduraooft!!

lol I thought that was the answer but then I thought there might have been somethin different so I just queried it to be safe!!!

Thanks

Kyle!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum