No doubt IE7 is doing something to compensate for a coding error I have made but I can't tie it down. Can anyone tell me why, in FireFox, the two yellow boxes overflow the green box that I hoped would grow with them and contain them as it does in IE7.
Thanks in advance.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>TekTips Test</title>
</head>
<body style="font-family:verdana; font-size:10pt; ">
<div style="width:500px; background-color:green; height:auto; padding:5px">
<div style="margin:5px; height:auto; background-color:yellow; width:auto; float:left;">
a<br/>
a<br/>
a<br/>
a<br/>
</div>
<div style="margin:5px; height:auto; background-color:yellow; width:auto; float:left;">
a<br/>
a<br/>
a<br/>
a<br/>
</div>
</div>
</body>
</html>