Сделал на 100%, но интересно, кроме внешнего вида, у этой сетки есть какй-либо потенциал? И конечно интересно насколько далёк мой код от “идеала”:D.
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="header">
<div class="layout-positioner">
<div class="layout-header1 layout-header">Header</div>
</div>
<div class="menu">
<div class="layout-positioner vasya">Menu
</div>
</div>
<div class="layout-positioner">
<div class="layout-header2 layout-header">Promo 1</div>
<div class="layout-header3 layout-header">Promo 2</div>
</div>
</div>
<div class="features">
<div class="layout-positioner">
<div class="layout-features1 layout-features">Left</div>
<div class="layout-features2 layout-features">Main</div>
<div class="layout-features3 layout-features">Right</div>
</div>
</div>
<div class="footer">
<div class="layout-positioner pupkin">Footer
</div>
</div>
</body>
</html>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: "Arial", sans-serif;
font-size: 10px;
color: white;
}
.layout-positioner {
width: 350px;
margin: 0 auto;
}
.layout-positioner::after {
display: table;
content: "";
clear: both;
}
.header {
background-color: #34495e;
padding: 10px 0px;
margin-bottom: 10px;
}
.layout-header {
background-color: #c0392b;
padding: 5px 5px;
height: 25px;
}
.layout-header1 {
margin-bottom: 10px;
}
.layout-header2{
float: left;
}
.layout-header3{
float: right;
}
.layout-header2,
.layout-header3 {
width: 160px;
height: 50px;
}
.menu {
background-color: #3498DB;
margin-bottom: 10px;
}
.vasya {
padding: 5px 55px;
height: 25px;
}
.layout-features {
background-color: #3498DB;
padding: 5px 5px;
height: 100px;
margin-bottom: 10px;
}
.layout-features1 {
float: left;
margin-right: 10px;
width: 60px;
}
.layout-features2 {
float: left;
width: 180px;
}
.layout-features3 {
float: right;
width: 60px;
}
.pupkin {
padding: 5px 55px;
height: 25px;
}
.footer {
background-color: #34495e;
}