Why is the placement of the <h1>
tag with "clear both" at the bottom causing issues? Removing "clear both" resolves the problem, but how can I make it work when including "clear both"?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gbk"/>
<style>
#left{
float:left;
width:200px;
height:400px;
background:#cfc;
}
#main{
margin-left:210px;
background:#f9c;
height:400px;
}
h1{
clear:both;
}
</style>
</head>
<body>
<div id="left"></div>
<div id="main">
<h1>test</h1>
</div>
</body>
</html>