<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="head margin_bottom">
<div class="layout-positioner margin_bottom">
<div class="header">Header</div>
</div>
<div class="fon-menu">
<div class="layout-positioner margin_bottom">
<div class="menu">Menu</div>
</div>
</div>
<div class="layout-positioner">
<div class="promo-1">Promo 1</div>
<div class="promo-2">Promo 2</div>
</div>
</div>
<div class="layout-positioner margin_bottom">
<div class="left">Left</div>
<div class="main">Main</div>
<div class="right">Right</div>
</div>
<div class="fon-footer">
<div class="layout-positioner">
<div class="footer">Footer</div>
</div>
</div>
</body>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
.head{
background: #34495e;
padding-top: 10px;
padding-bottom: 10px;
}
.header{
background: #c0392b;
padding: 5px;
min-height: 25px;
}
.fon-menu{ background: #3498DB;}
.menu{ padding: 5px; min-height: 25px;}
.promo-1, .promo-2{
background: #c0392b;
padding: 5px;
float: left;
width: 160px;
min-height: 50px;
}
.promo-1{ margin-right: 10px;}
.layout-positioner {
width: 350px;
margin: 0 auto;
}
.layout-positioner::after {
display: table;
content: “”;
clear: both;
}
.left, .main, .right{
background: #3498DB;
float: left;
margin-right: 10px;
width: 60px;
min-height: 100px;
padding: 5px;
}
.main{ width: 180px;}
.right{ margin-right: 0;}
.footer{
margin-bottom: 0;
min-height: 25px;
padding: 5px;
}
.fon-footer{ background: #34495e;}
.margin_bottom{ margin-bottom: 10px;}