Forum Moderators: not2easy
Thanks in advance for any help.
Code starts here:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#outerbox{
float:right;
width: 75%;
margin: 0;
padding: 0 3% 0 0;
border: solid 1px #f00;
}
#inerbox
{
margin: 0;
padding: 0 3% 0 0;
border: 1px solid #000;
}
/************** # imaging floating styles **************/
.floatright
{
float: right;
margin: 0 0 10px 10px;
border: 1px solid #666;
padding: 2px;
}
.floatleft
{
float: left;
margin: 10px 10px 10px 0px;
border: 1px solid #666;
padding: 2px;
}
-->
</style>
</head>
<body>
<div id="outerbox">
<p>Some paragraph text here.</p>
<div id="inerbox">
<p>Some paragraph text here.<img src="/courses/images/beekman-pic.jpg" width="251" height="189" class="floatleft" /></p>
<p>more here </p>
</div>
<div>
</body>
</html>
<div id="inerbox">
<p>Some paragraph text here.<img src="/courses/images/beekman-pic.jpg" width="251" height="189" class="floatleft" /></p>
<p>more here </p>
<div class="clear"></div>
CSS:
.clear {
clear:both;
width:100%;
font-size:1px;
}
#inerbox {
....
overflow:hidden;
width:100%; /* Force hasLayout in IE */
} This way you don't need the clearing DIV.
------------
BTW, I've just noticed you're missing the '/' in your closing <div>.