<!DOCTYPE html>
<html>
<head>
<title>Главная</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="container">
<div class="head"></div>
<div class="content">
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
<div class="content_block"></div>
</div>
<div class="footer"></div>
</div>
</body>
</html>
header{
}
.head{
border:solid 1px;
padding: 60px;
background-color: #FFA775;
}
main{
margin: 0 auto;
}
.content{
margin: 0 auto;
}
.content_block{
position: relative;
max-width: 1200px;
width: 295px;
height: 200px;
border: solid 1px;
display: inline-block;
padding-bottom: 50px;
margin: 0 auto;
margin-top: 40px;
background-color: #FFE475;
}
.container{
max-width: 1200px;
margin: 0 auto;
}
.footer{
border: solid 1px;
padding: 100px;
margin-top: 50px;
background-color: #BDFF00;
}
@media only screen and (max-width: 1216px) {
.content{
position: relative;
margin: 0 auto;
}
.content_block {
position: relative;
max-width: 1200px;
width: 295px;
height: 200px;
border: solid 1px;
display: inline-block;
padding-bottom: 50px;
margin: 0 auto;
margin-top: 40px;
background-color: #FFE475;
}
.head{
width: 900px;
border:solid 1px;
padding: 60px;
background-color: #FFA775;
margin: 0 auto;
}
.content{
margin: 0 auto;
}
.container{
max-width: 1200px;
margin: 0 auto;
}
}
media only screen and (max-width: 1216px) {
.content{
text-align: center;
position: relative;
margin: 0 auto;
}
.content_block {
text-align: left;
position: relative;
max-width: 1200px;
width: 295px;
height: 200px;
border: solid 1px;
display: inline-block;
padding-bottom: 50px;
margin: 0 auto;
margin-top: 40px;
background-color: #FFE475;
}
//...