`
Испытание: строим сетку
Header
Menu
Promo 1
Promo 2
Left
Main
Right
Footer
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="head">
<div class="layout-positioner">
<div class="header"><p>Header</p></div>
</div>
<div class="menu">
<div class="layout-positioner">
<p>Menu
</div>
</div>
<div class="promo">
<div class="layout-positioner">
<div class="column1"> <p>Promo 1</p></div>
<div class="column2"> <p>Promo 2</p></div>
</div>
</div>
</div>
<div class="content">
<div class="layout-positioner">
<div class="layout-column left"><p>Left</p></div>
<div class="layout-column main"><p>Main</p></div>
<div class="layout-column right"><p>Right</p></div>
</div>
</div>
<div class="footer">
<div class="layout-positioner">
<p>Footer</p>
</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::after {
display: table;
content: "";
clear: both;
}
.layout-positioner {
width: 350px;
margin: 0 auto;
}
.head {
width: 450px;
background: #34495e;
clear: both;
padding-top: 10px;
padding-bottom: 10px;
}
.header {
min-height: 35px;
background: #c0392b;
width: 350px;
}
.menu {
background: #3498DB;
margin-top:10px;
margin-bottom:10px;
min-height: 35px;
}
.column1 {
width: 170px;
height: 60px;
float: left;
background: #c0392b;
}
.column2 {
width: 170px;
height: 60px;
float: right;
background: #c0392b;
}
.content {
margin-bottom:10px;
margin-top:10px;
}
.layout-column {
background: #3498DB;
min-height: 110px;
float: left;
margin-right:10px;
}
.left {
width: 70px;
}
.main {
width: 190px;
}
.right {
width: 70px;
}
.right {
margin-right:0px;
}
.footer {
background: #34495e;
height: 35px;
}
p {
padding: 5px;
margin: 0;
}
/*
Используемые цвета:
#34495e – мокрый асфальт
#c0392b – красный
#3498DB – синий
*/