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