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