|
Posted by listerofsmeg01 on November 5, 2006, 5:05 pm
Please log in for more thread options
> Anyway thanks for your help. Like I said I've been staring at this for
> hours now so it's more than likely that I'm doing something stupid.
> Thanks anyway.
OK, I obviously am doing something stupid, since I just cut and pasted
your entire code snippet and it works just fine as you say.
Here is my entire code that doesn't work in IE:
<!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" xml:lang="en" lang="en">
<head></head>
<body>
<div style="float:left; height:100px; background-color:red;">Hi,
I'm floating</div>
<br style="clear:both;"/>
<div style="margin-top:20px;">This text should have a margin after
the floated div</div>
</body>
</html>
|