<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
.image-container {
width: 30%;
border: 1px solid #000;
background: #ffffc;
}
.image-container img {
float: left;
margin: 7px
}
p {
margin: 0;
padding: 2px;
}
.dontwrap p {
margin-left: 120px
}
</style>
</head>
<body>
<div class="image-container"> <img src="http://www.java2s.com/style/logo.png" width="100" height="75" alt="pretty picture"/>
<p>this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test. </p>
</div>
<div class="image-container dontwrap"> <img src="http://www.java2s.com/style/logo.png" width="100" height="75" alt="pretty picture" />
<p>this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. </p>
</div>
</body>
</html>