<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="header">
<div class="header-info layout-positioner">Header</div>
<div class="menu">
<div class="layout-positioner">Menu</div>
</div>
<div class="promo fixclear">
<div>Promo 1</div>
<div>Promo 2</div>
</div>
</div>
<div class="main fixclear">
<div>Left</div>
<div class="main-info">Main</div>
<div>Right</div>
</div>
<div class="footer">
<div class="layout-positioner">Footer</div>
</div>
</body>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
.layout-positioner {
width: 345px;
min-height: 30px;
margin: 0 auto 10px auto;
padding: 5px 0 0 5px;
}
.header {
padding: 10px 0;
background-color: #34495e;
margin-bottom: 10px;
}
.header-info {
background-color: #c0392b;
}
.menu {
min-height: 35px;
background-color: #3498DB;
}
.promo div {
width: 165px;
min-height: 55px;
margin-right: 10px;
margin-left: 50px;
float: left;
padding: 5px 0 0 5px;
background-color: #c0392b;
}
.promo div:last-child {
margin-right: 0;
margin-left: 0;
}
.fixclear::after {
content: “”;
display: table;
clear: both;
}
.main div {
width: 65px;
min-height: 105px;
margin-right: 10px;
padding: 5px 0 0 5px;
background-color: #3498DB;
float: left;
}
.main div:first-child {
margin-left: 50px;
}
div.main-info {
width: 185px;
}
.main {
margin-bottom: 10px;
}
.footer {
min-height: 35px;
background-color: #34495e;
}
/*
Используемые цвета:
#34495e – мокрый асфальт
#c0392b – красный
#3498DB – синий
*/