<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div>
<div class='head'>
<div class='header'>Header</div>
<div class='menu'>Menu</div>
<div class='promo'>Promo 1</div>
<div class='promo2'>Promo 2</div>
</div>
<div>
<div class='center left'> Left</div>
<div class='center main'> Main</div>
<div class='center right'> Right</div>
</div>
<div class='footer'> Footer</div>
</div>
</body>
==========================================
CSS
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: "Arial", sans-serif;
font-size: 10px;
color: white;
position:relative;
}
.head {
width: 450px;
/*min-height: 170px;*/
background: #34495e;
}
.head::after {
content:'.';
display: block;
clear: both;
visibility: hidden;
height:0;
}
.header {
width:350px;
height:35px;
background: #c0392b;
padding: 5px;
margin: 10px 50px;
float:left;
}
.menu {
background: #3498DB;
width:100%;
height:35px;
margin-bottom: 5px;
padding: 5px 55px;
float:left;
}
.promo, .promo2 {
background: #c0392b;
width: 170px;
height:60px;
margin: 5px;
margin-bottom:10px;
padding:5px;
float: left;
}
.promo {
margin-left: 50px;
}
.center {
background: #3498DB;
width:70px;
height:110px;
float: left;
margin: 10px 10px 10px 0;
padding:5px;
}
.left {
margin-left: 50px;
}
.main {
width: 190px;
}
.footer {
width:100%;
height: 35px;
background: #34495e;
padding: 5px 55px;
bottom: 0;
position: absolute;
}
/*
Используемые цвета:
#34495e – мокрый асфальт
#c0392b – красный
#3498DB – синий
*/