<!DOCTYPE html>
<html lang="en">
<head>
<!-- Кодировка веб-страницы -->
<meta charset="utf-8">
<!-- Настройка viewport -->
<meta name="viewport" content="width=device-width; initial-scale=1">
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="main-container">
<div class="header">
<div class="center-block">
<div class="col-md-6 col-xs-12">
<form action="" method="get" class="contact-form shadow">
</form>
</div>
</div>
</div>
</body>
.contact-form {
height: 364px;
text-align: center;
background-color: red;
}
.shadow {
box-shadow: 1px 8px 20px 0px #d7d7d7;
}
.main-container {
margin: 0 auto;
}
@media(min-width: 1000px) {
.main-container {
width: 970px;
}
}
@media(min-width: 1300px) {
.main-container {
width: 1270px;
}
}
@media(min-width: 1470px) {
.main-container {
width: 1440px;
}
}
.center-block {
width: 80%;
margin: 0 auto;
}
@media(max-width: 1000px) {
.main-container {
width: 100%;
}
.center-block {
width: 100%;
}
}
[class*='col-'] {
float: left;
}
.col-xs-4 {
width: 33.3%;
}
.col-xs-6 {
width: 50%;
}
.col-xs-12 {
width: 100%;
}
@media(min-width: 1000px) {
.col-md-4 {
width: 33.3%;
}
.col-md-6 {
width: 50%;
}
.col-md-12 {
width: 100%;
}
}