Оцените качество кода, покажите слабые стороны…
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="container">
<div class="center">
<div class="header padding">
Header
</div>
</div>
<div class="menu">
<div class="center padding">
Menu
</div>
</div>
<div class="center">
<div class="clearfix">
<div class="padding c">
Promo 1
</div>
<div class="layout-promo2 padding c">
Promo 2
</div>
</div>
</div>
</div>
<div class="container1">
<div class="center">
<div class="clearfix">
<div class="left padding b">
Left
</div>
<div class="main padding b">
Main
</div>
<div class="right padding b">
Right
</div>
</div>
</div>
</div>
<div class="container2">
<div class="center">
<div class="padding">
Footer
</div>
</div>
</div>
</body>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
.container {
background-color: #34495e;
padding-top: 10px;
}
.header {
background-color: #c0392b;
height: 30px;
}
.center {
width: 350px;
margin-left: auto;
margin-right: auto;
}
.menu {
background-color: #3498DB;
height: 30px;
margin-bottom: 10px;
}
.c {
background-color: #c0392b;
width: 165px;
height: 55px;
margin-bottom: 10px;
float: left;
}
.layout-promo2 {
margin-left: 10px;
float: right;
}
.clearfix::after {
content: “”;
display: table;
clear: both;
}
.padding {
padding-top: 5px;
padding-left: 5px;
margin-bottom: 10px;
}
.b {
background-color: #3498DB;
width: 65px;
height: 105px;
float: left;
}
.left {
margin-right: 10px;
}
.main {
margin-right: 10px;
width: 185px;
}
.right {
float: right;
}
.container1 {
padding-top: 10px;
}
.container2 {
background-color: #34495e;
height: 40px;
}