Text floating around image
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> #outer{ width:50%; margin:auto; background:#ccc; border:1px solid #000; position:relative; overflow:auto; } #outer div { position:absolute; bottom:0; left:0; margin-right:320px; width:100%; } #outer div p { margin-right:320px; } #outer img{ float:right; margin:30px 10px } </style> </head> <body> <div id="outer"> <img src="http://www.java2s.com/style/logo.png" alt="" width="300" height="225" /> <div><p>this is a test. this is a test. this is a test. this is a test. </p></div> </div> </body> </html>