<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="header clearfix">
<div class="layout-positioner">
<div class="header1">Header</div>
</div>
<div class=menu>Menu</div>
<div class="header2">
<div class="layout-positioner">
<div class="promo">Promo 1</div>
<div class="promo">Promo 2</div>
</div>
</div>
</div>
<div class="content clearfix">
<div class="layout-positioner">
<div class="layout-column">Left</div>
<div class="layout-column">Main</div>
<div class="layout-column">Right</div>
</div>
</div>
<div class="layout-positioner">
<div class="footer">Footer</div>
</div>
</body>
</html>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
.clearfix::after {
display: table;
content: “”;
clear: both;
}
.header {
padding-top:5px;
margin-bottom:10px;
background:#34495e;
}
.header1{
min-height: 25px;
margin:5px 50px 10px 50px;
padding:5px;
background:#c0392b;
}
.menu{
min-height: 25px;
padding:5px 55px;
background:#3498DB;
}
.header2 .promo{
min-height: 60px;
background:#c0392b;
margin-top:10px;
margin-bottom:10px;
}
.promo:first-child{
float: left;
width: 160px;
min-height: 50px;
padding: 5px;
color: white;
margin-left:50px;
}
.promo:last-child{
float: right;
width: 160px;
min-height:50px;
padding: 5px;
color: white;
margin-right:50px;
}
.content .layout-column{
float:left;
width:130px;
min-height: 95px;
background: #3498DB;
padding:5px
}
.layout-column:nth-child(1){
width:60px;
margin-right:10px;
margin-left:50px;
}
.layout-column:nth-child(2){
width:180px;
}
.layout-column:nth-child(3){
width:60px;
margin-right:0px;
margin-left:10px;
}
.layout-positioner {
width:450px;
margin: 0 auto;
border: 2px dashed #3498db;
}
.layout-positioner::after {
display: table;
content: "";
clear: both;
}
.footer {
margin-top:10px;
height: 25px;
padding:5px 55px;
background: #34495e;
}