Здравствуйте, подскажите пожалуйста на сколько верен мой код:
<div class="top">
<div class="header">Header</div>
<div class="menu">Menu</div>
<div class="promo1"> Promo 1</div>
<div class="promo2">Promo 2</div>
</div>
<div class="middle">
<div class="left">Left</div>
<div class="main">Main</div>
<div class="right">Right</div>
</div>
<div class="footer">Footer</div>
</body>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
.top{
width: 450px;
height: 150px;
padding-top: 10px;
padding-bottom: 10px;
background-color: #34495e;
}
.footer{
height:35px;
background-color:#34495e;
}
.header{
width: 340px;
height: 25px;
margin-bottom: 10px;
margin-left: 50px;
padding: 5px;
background-color: #c0392b;
}
.menu{
width: 395x;
height: 25px;
padding:5px;
padding-left: 55px;
background-color:#3498DB;
}
.promo1{
width: 160px;
height:50px;
margin-top: 10px;
margin-left: 50px;
margin-right: 5px;
padding:5px;
float:left;
background-color: #c0392b;
}
.promo2{
width: 160px;
height:50px;
margin-top: 10px;
margin-left: 5px;
margin-right:50px;
float:right;
padding:5px;
background-color: #c0392b;
}
.left{
width: 60px;
height: 100px;
margin-top: 10px;
margin-left: 50px;
margin-bottom: 10px;
padding: 5px;
float: left;
background-color: #3498DB;
}
.main{
width:180px;
height: 100px;
margin-left: 10px;
margin-top: 10px;
margin-bottom: 10px;
padding: 5px;
float: left;
background-color: #3498DB;
}
.right{
width: 60px;
height: 100px;
margin-top: 10px;
margin-left: 10px;
margin-right: 50px;
margin-bottom: 10px;
padding: 5px;
float: right;
background-color: #3498DB;
}
.footer{
margin-top: 10px;
padding-top: 5px;
padding-left:55px;
clear: both;
}