amirepsilon
Active Member
<div class="clear"></div> برای چیست ؟
<div style="clear:both"></div>
<style>
.clear {
clear:both;
}
</style>
<div class="clear"></div>
<html>
<head>
<style>
.main {
width:500px;
background:#ddd;
border:1px solid #000;
height:auto;
padding:15px;
}
.right {
float:right;
width:235px;
height:150px;
background:#666;
margin:0 10px 0 0;
}
.left {
float:left;
width:235px;
height:150px;
background:#666;
margin:0 0 0 10px;
}
</style>
</head>
<body>
<div align="center">
<div class="main">
<div class="right"></div>
<div class="left"></div>
<div style="clear:both"></div>
</div>
</div>
</html>
</body>
<div style="clear:both"></div>