http://codepen.io/liim/pen/XNgGXp
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="header">
<div class="layout-positioner">
<div class="content-header">
Header
</div>
</div>
</div>
<div class="menu">
<div class="layout-positioner">
<div class="content-menu">
Menu
</div>
</div>
</div>
<div class="promo">
<div class="layout-positioner">
<div class="layout-column promo1">
Promo 1
</div>
<div class="layout-column promo2">
Promo 2
</div>
</div>
</div>
<div class="features">
<div class="layout-positioner">
<div class="feature content1">
Left
</div>
<div class="feature content2">
Main
</div>
<div class="feature content3">
Right
</div>
</div>
</div>
<div class="footer">
<div class="layout-positioner">
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;
}
/*
Используемые цвета:
#34495e – мокрый асфальт
#c0392b – красный
#3498DB – синий
*/
.layout-positioner {
width: 350px;
margin: 0 auto;
}
.layout-positioner:after {
display: table;
content: “”;
clear: both;
}
.header{
padding: 10px 0 0 0;
min-height: 45px;
background: #34495e;
}
.content-header{
padding: 5px 0 0 5px;
height: 30px;
background: #c0392b;
}
.menu{
background: #3498db;
}
.content-menu{
padding: 5px 0 0 5px;
height:30px;
}
.promo{
padding: 10px 0 0 0;
min-height: 45px;
background: #34495e;
}
.layout-column{
padding: 5px 0 0 5px;
height: 55px;
width: 165px;
margin-bottom: 10px;
background: #c0392b;
}
.promo1{
float: left;
}
.promo2{
float: right;
}
.feature{
background: #3498db;
padding: 5px 0 0 5px;
float: left;
}
.content1{
height: 105px;
width: 65px;
margin: 10px 10px 0 0;
}
.content2{
width: 185px;
height: 105px;
margin: 10px 10px 0 0;
}
.content3{
width: 65px;
height: 105px;
margin: 10px 0 0 0;
}
.footer{
background:#34495e;
height: 30px;
margin: 10px 0 0 0;
padding: 5px 0 0 9px;
}