<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="header-wrap 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="content-wrap clearfix">
<div class="left">
Left
</div>
<div class="content-main">
Main
</div>
<div class="right">
Right
<div>
<div>
<div class="footer">
Footer
</div>
</body>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
/*
Используемые цвета:
#34495e – мокрый асфальт
#c0392b – красный
#3498DB – синий
*/
.header-wrap {
width: 450px;
background-color: #34495e;
height: 160px;
padding-top: 10px;
}
.header {
background-color: #c0392b;
width: 350px;
height: 35px;
margin: 0 auto;
padding: 5px;
box-sizing: border-box;
}
.menu {
background-color: #3498DB;
height: 35px;
margin: 10px 0;
padding-left: 55px;
padding-top: 5px;
box-sizing: border-box;
}
.promo1 {
background-color: #c0392b;
width: 170px;
height: 60px;
margin-left: 50px;
margin-right: 10px;
float: left;
padding: 5px 0 0 5px;
box-sizing: border-box;
}
.promo2 {
background-color: #c0392b;
width: 170px;
height: 60px;
float: right;
margin-right: 50px;
padding: 5px 0 0 5px;
box-sizing: border-box;
}
.clearfix::after {
content: “”;
display: table;
clear: both;
}
.content-wrap {
margin: 10px 0;
}
.left {
background-color: #3498DB;
width: 70px;
height: 110px;
float: left;
margin-left: 50px;
margin-right: 10px;
padding: 5px;
box-sizing: border-box;
}
.content-main {
background-color: #3498DB;
width: 190px;
height: 110px;
float: left;
padding: 5px;
box-sizing: border-box;
}
.right {
background-color: #3498DB;
width: 70px;
height: 110px;
float: right;
margin-right: 50px;
padding: 5px;
box-sizing: border-box;
}
.footer {
background-color: #34495e;
height: 35px;
margin: 0 auto;
}