Why can not media queries work? I do everything as expected: the requests themselves always go to the end of the document, they were written without errors @media screen and (max-width: 1200px) {} I even tried to connect them with a separate file after the main one. But all the same, on the specified permissions, they are not that they are not used, but they are not in principle.

 article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } .otziv_wrapper { margin: 80px 0; font-family: "firasans"; } .otziv_block { position: relative; /* border-radius: 15px; border-left: 7px solid; border-bottom: 7px solid; border-color: #0086a9;*/ background: #fff; } .otziv_preview { position: relative; min-height: 190px; margin-bottom: 7px; } .otziv_preview:before { content: ''; display: inline-block; width: 515px; height: 203px; position: absolute; top: -7px; left: 0; background-image: url("../img/img-line_1.png"); background-repeat: no-repeat; background-position: center center; } .otziv_preview:after { content: ''; display: inline-block; width: 370px; height: 103px; position: absolute; bottom: -102px; right: 55px; background-image: url("../img/img-line_2.png"); background-repeat: no-repeat; background-position: center center; } .otziv_preview-img { position: absolute; left: 60px; bottom: 0; } .otziv_preview-text { max-width: 490px; font-size: 18px; line-height: 24px; color: #000; float: right; } .otziv_step1 { position: relative; margin: 70px 0 75px; } .otziv_step1:after { content: ''; display: inline-block; width: 376px; height: 118px; position: absolute; right: 51px; bottom: -75px; background-image: url("../img/img-line_3.png"); background-repeat: no-repeat; background-position: center center; } .otziv_step1-text { max-width: 510px; margin-left: 40px; } .otziv_step-text-title { font-size: 18px; margin-bottom: 20px; } .otziv_step-text-name { font-size: 16px; } .otziv_step-text-item { font-size: 16px; line-height: 20px; padding-right: 40px; } .otziv_step1-img { position: absolute; right: 150px; top: -39px; } .otziv_step-loc { position: absolute; width: 147px; height: 187px; text-align: center; background-image: url("../img/img_location.png"); background-repeat: no-repeat; background-position: center center; -webkit-background-size: cover; background-size: cover; } .otziv_step1-loc_pos { top: -25px; right: -13px; } .otziv_step-loc_text { margin-top: 35px; font-family: "firasansmedium"; font-size: 16px; color: #29507a; line-height: 24px; letter-spacing: -0.12em; } .otziv_step-loc_num { font-family: "firasansmedium"; font-size: 30px; color: #fff; position: absolute; bottom: 13px; left: 50%; margin-left: -7px; } .otziv_step2 { position: relative; padding-top: 50px; margin-bottom: 80px; } .otziv_step2:before { content: ''; display: inline-block; position: absolute; left: 83px; top: -7px; width: 430px; height: 103px; background-image: url(../img/img-line_4.png); background-repeat: no-repeat; background-position: center center; } .otziv_step2-video { position: absolute; z-index: 100; left: 180px; top: 50%; margin-top: -70px; width: 270px; height: auto; overflow: hidden; border: 1px solid #b8b8b8; background-color: #fff; } .otziv_step2-video_text-wr { padding: 5px; } .otziv_step2-video_text { margin-bottom: 3px; font-size: 8px; color: #141414; } .otziv_step2-video_subscribe { font-size: 8px; color: #fff; text-align: center; padding: 2px 5px; border-radius: 5px; background-color: #ff2d02; } .otziv_step2-video_subscribe:hover { color: #fff; text-decoration: none; } .otziv_icon-yt { display: inline-block; vertical-align: middle; width: 11px; height: 6px; margin-right: 5px; margin-top: -2px; background-image: url(../img/icon_yt.png); -webkit-background-size: cover; background-size: cover; } .otziv_step2-text { float: right; max-width: 430px; } .otziv_step2-loc_pos { left: 15px; top: 45px; } .otziv_step3 { padding-top: 95px; padding-bottom: 50px; } .otziv_step3:after { content: ''; display: inline-block; position: absolute; left: 78px; top: -126px; width: 378px; height: 116px; background-image: url(../img/img-line_5.png); background-repeat: no-repeat; background-position: center center; } .otziv_step3:before { content: ''; display: inline-block; position: absolute; top: -17px; right: 55px; width: 430px; height: 103px; background-image: url(../img/img-line_6.png); background-repeat: no-repeat; background-position: center center; } .otziv_step3-loc_pos { right: -14px; top: 43px; } .otziv_step3-text { max-width: 440px; margin-left: 50px; } .otziv_step3-item { font-size: 18px; } .otziv_step3-email-wr { position: absolute; right: 135px; top: 40px; text-align: center; } .otziv_step3-email { font-family: "firasansbold"; font-size: 40px; color: #004f7c; letter-spacing: -0.08em; } .otziv_step3-email-icon { margin-top: 50px; } .otziv_get-gift { margin-top: 50px; font-family: "firasansbold"; font-size: 80px; color: #cf2712; text-align: center; } .otziv_get-gift:before { content: ''; display: inline-block; position: absolute; right: 49px; top: -100px; width: 86px; height: 146px; background-image: url(../img/img-line_7.png); } .otziv_forma-wr { margin-top: 70px; } .otziv_forma { width: 615px; height: auto; margin: 0 auto; padding: 35px 55px; border: 6px solid #0086a9; border-radius: 20px; background-color: #f9f9f9; } .otziv_forma-input { width: 240px; height: 35px; font-size: 14px; padding-left: 15px; margin-bottom: 13px; border: 1px solid #d3d3d3; background-color: #fff; } .otziv_forma-input::placeholder { color: #bbbbbb; } .otziv_forma-input:nth-child(odd) { float: left; } .otziv_forma-input:nth-child(even) { float: right; } .otziv_forma-button { display: block; width: 240px; height: 40px; margin: 0 auto; padding: 0; font-family: "firasansbold"; font-size: 16px; text-transform: uppercase; text-align: center; color: #fff; border: none; background-color: #0076b0; } .some_test { background-color: #ccc; } @media screen and(max-width: 992px) { .some_test { background-color: #ff00ca; } .otziv_wrapper { background: green; } } 
 <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8"> <title>Otziv</title> <link rel="stylesheet" href="cssnew/style.css"> <link rel="stylesheet" href="css/otziv_grid.css"> <link rel="stylesheet" href="css/otziv_style.css"> </head> <body> <div class="some_test">Π”Π°Π»Π΅ΠΊΠΎ-Π΄Π°Π»Π΅ΠΊΠΎ Π·Π° словСсными Π³ΠΎΡ€Π°ΠΌΠΈ Π² странС, гласных ΠΈ согласных ΠΆΠΈΠ²ΡƒΡ‚ Ρ€Ρ‹Π±Π½Ρ‹Π΅ тСксты. Π§Ρ‚ΠΎ Π½Π°Π·Π°Π΄ ΠΆΠΈΠ·Π½ΠΈ запятой ΡΠΎΡΡ‚Π°Π²ΠΈΡ‚Π΅Π»ΡŒ Π±Π΅Π·ΠΎΡ€Ρ„ΠΎΠ³Ρ€Π°Ρ„ΠΈΡ‡Π½Ρ‹ΠΉ Ρ€ΠΎΠ΄Π½ΠΎΠ³ΠΎ всСми возвращайся пояс Π΄Π΅Ρ€Π΅Π²Π½ΠΈ ΠΎΠ½ΠΈ использовало ΠΏΡ€Π΅Π΄ΡƒΠΏΡ€Π΅ΠΆΠ΄Π°Π» Π΄Π°ΠΆΠ΅ ΠΌΠΈΡ€, рСторичСский малСнькая, бросил грустный.</div> <div class="otziv_wrapper"> <div class="container"> <div class="otziv_block otziv_preview"> <img src="img/img-1.png" alt="" class="otziv_preview-img"> <div class="otziv_preview-text">Π’Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚Π΅ всСго Ρ‚Ρ€ΠΈ дСйствия, ΠΈ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚Π΅ сСртификат* Π½Π° ΠΏΠΎΠΊΡƒΠΏΠΊΡƒ Π² ΠΈΠ½Ρ‚Π΅Ρ€Π½Π΅Ρ‚-ΠΌΠ°Π³Π°Π·ΠΈΠ½Π΅ avantsb.ru Π½Π° сумму ΠΎΡ‚ 1000 Ρ€ΡƒΠ±. Для этого Π’Π°ΠΌ Π½ΡƒΠΆΠ½ΠΎ Π²Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ 3 условия.</div> </div> <div class="otziv_block otziv_step1"> <div class="otziv_step1-text"> <div class="otziv_step-text-title">1. Π—Π°ΠΏΠΈΡΠ°Ρ‚ΡŒ ΠΌΠΈΠ½ΠΈ ΠΎΠ±Π·ΠΎΡ€ Π½Π° ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ» Avantis ΠΈΠ»ΠΈ ATV Classic</div> <div class="otziv_step-text-item">Π’ΠΈΠ΄Π΅ΠΎ Π΄ΠΎΠ»ΠΆΠ½ΠΎ ΡΠΎΠ΄Π΅Ρ€ΠΆΠ°Ρ‚ΡŒ:</div> <div class="otziv_step-text-item">- ΠΏΡ€ΠΎΠ³ΠΎΠ²ΠΎΡ€Π΅Π½ΠΎ ΠΏΠΎΠ»Π½ΠΎΠ΅ Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π°</div> <div class="otziv_step-text-item">- возраст Ρ€Π΅Π±Π΅Π½ΠΊΠ° (Π΄Π΅Ρ‚Π΅ΠΉ), для ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠ³ΠΎ Π±Ρ‹Π» ΠΏΡ€ΠΈΠΎΠ±Ρ€Π΅Ρ‚Π΅Π½ <br /> ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»</div> <div class="otziv_step-text-item">- дСмонстрация ΠΏΠΎΠ΅Π·Π΄ΠΊΠΈ Ρ€Π΅Π±Π΅Π½ΠΊΠ° Π½Π° ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ <br /> (ΠΆΠ΅Π»Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ Π² Π·Π°Ρ‰ΠΈΡ‚Π½ΠΎΠΉ экипировкС)</div> <div class="otziv_step-text-item">- ΠΏΠΎΠ΄Π΅Π»ΠΈΡ‚Π΅ΡΡŒ своими впСчатлСниями ΠΎΡ‚ использования <br /> ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° Avantis (ΠΎΡ‚ взрослого ΠΈ Ρ€Π΅Π±Π΅Π½ΠΊΠ°)</div> </div> <img src="img/img-2.png" alt="" class="otziv_step1-img"> <div class="otziv_step-loc otziv_step1-loc_pos"> <div class="otziv_step-loc_text">Π—Π°ΠΏΠΈΡˆΠΈ Π²ΠΈΠ΄Π΅ΠΎ ΠΎ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis</div> <div class="otziv_step-loc_num">1</div> </div> </div> <div class="otziv_block otziv_step2 clearfix"> <div class="otziv_step-loc otziv_step2-loc_pos"> <div class="otziv_step-loc_text">ΠžΠΏΡƒΠ±Π»ΠΈΠΊΡƒΠΉ Π²ΠΈΠ΄Π΅ΠΎ <br />Π½Π° своСм <br />youtube-ΠΊΠ°Π½Π°Π»Π΅</div> <div class="otziv_step-loc_num">2</div> </div> <div class="otziv_step2-video"> <iframe width="270px" height="190px" src="https://www.youtube.com/embed/UwtqfCbWDo4" frameborder="0" allowfullscreen></iframe> <div class="otziv_step2-video_text-wr"> <div class="otziv_step2-video_text">МодСль ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° (ΠΏΡ€ΠΈΠΌΠ΅Ρ€: ΠžΡ‚Π·Ρ‹Π² ΠΎ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis mirage 8)</div> <a href="#" class="otziv_step2-video_subscribe"><i class="otziv_icon-yt"></i>ΠŸΠΎΠ΄ΠΏΠΈΡΠ°Ρ‚ΡŒΡΡ</a> </div> </div> <div class="otziv_step2-text"> <div class="otziv_step-text-title">2. ΠžΠΏΡƒΠ±Π»ΠΈΠΊΠΎΠ²Π°Ρ‚ΡŒ Π²ΠΈΠ΄Π΅ΠΎ Π½Π° Π’Π°ΡˆΠ΅ΠΌ ΠΊΠ°Π½Π°Π»Π΅ youtube с подписью: </div> <div class="otziv_step-text-item">НазваниС Π²ΠΈΠ΄Π΅ΠΎ:</div> <div class="otziv_step-text-item">- МодСль ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° (ΠΏΡ€ΠΈΠΌΠ΅Ρ€: ΠžΡ‚Π·Ρ‹Π² ΠΎ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis Mirage 8)</div> <div class="otziv_step-text-item">ОписаниС Π²ΠΈΠ΄Π΅ΠΎ:</div> <div class="otziv_step-text-item">- Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° (ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ» Avantis Mirage 8)</div> <div class="otziv_step-text-item">- ссылка Π½Π° наш сайт: http://www.avantsb.ru</div> <div class="otziv_step-text-item">- ссылка Π½Π° наш ΠΊΠ°Π½Π°Π» Π½Π° youtube: https://www.youtube.com/user/MyAvantisΒ»</div> </div> </div> <div class="otziv_block otziv_step3"> <div class="otziv_step-loc otziv_step3-loc_pos"> <div class="otziv_step-loc_text">Π—Π°ΠΏΠΈΡˆΠΈ Π²ΠΈΠ΄Π΅ΠΎ ΠΎ <br />ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis</div> <div class="otziv_step-loc_num">3</div> </div> <div class="otziv_step3-text"> <div class="otziv_step3-item">3. ΠžΡ‚ΠΏΡ€Π°Π²ΠΈΡ‚ΡŒ ссылку Π½Π° Π²ΠΈΠ΄Π΅ΠΎ Π½Π°ΠΌ Π½Π° ΠΏΠΎΡ‡Ρ‚Ρƒ <br /><br />* Π‘Π΅Ρ€Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ ΠΌΠΎΠΆΠ΅Ρ‚ Π±Ρ‹Ρ‚ΡŒ использован Ρ‚ΠΎΠ»ΡŒΠΊΠΎ ΠΎΠ΄ΠΈΠ½ Ρ€Π°Π·. Он Π½Π΅ ΠΏΠΎΠ΄Π»Π΅ΠΆΠΈΡ‚ Π²ΠΎΠ·Π²Ρ€Π°Ρ‚Ρƒ ΠΈ ΠΎΠ±ΠΌΠ΅Π½Ρƒ Π½Π° дСньги Π½ΠΈ ΠΏΠΎΠ»Π½ΠΎΡΡ‚ΡŒΡŽ, Π½ΠΈ частично. Π Π°Π·Π½ΠΈΡ†Π° суммы, ΠΎΡΡ‚Π°Π²ΡˆΠ°ΡΡΡ послС ΠΏΠΎΠΊΡƒΠΏΠΊΠΈ, Π½Π΅ возвращаСтся. Если ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ Π²Ρ‹Π±Ρ€Π°Π½Π½Ρ‹Ρ… Ρ‚ΠΎΠ²Π°Ρ€ΠΎΠ² Π²Ρ‹ΡˆΠ΅ Π½ΠΎΠΌΠΈΠ½Π°Π»Π° сСртификата, Ρ€Π°Π·Π½ΠΈΡ†Ρƒ Π½ΡƒΠΆΠ½ΠΎ Π΄ΠΎΠΏΠ»Π°Ρ‚ΠΈΡ‚ΡŒ .</div> </div> <div class="otziv_step3-email-wr"> <div class="otziv_step3-email">otzyv@avantismotors.ru</div> <img src="img/img-3.png" alt="" class="otziv_step3-email-icon"> </div> </div> <div class="otziv_block otziv_get-gift"> ΠŸΠΎΠ»ΡƒΡ‡ΠΈ ΠΏΠΎΠ΄Π°Ρ€ΠΎΠΊ </div> <div class="otziv_forma-wr"> <form action="#" class="otziv_forma clearfix"> <input type="text" placeholder="Имя" class="otziv_forma-input"> <input type="text" pattern="\d [0-9]" placeholder="Π’Π΅Π»Π΅Ρ„ΠΎΠ½" class="otziv_forma-input"> <input type="text" placeholder="E-mail" class="otziv_forma-input"> <input type="text" placeholder="Бсылка Π½Π° Π²ΠΈΠ΄Π΅ΠΎ" class="otziv_forma-input"> <button class="otziv_forma-button">ΠžΡ‚ΠΏΡ€Π°Π²ΠΈΡ‚ΡŒ</button> </form> </div> </div> </div> </body> </html> 

  • 2
  • @ConstantineShibaev still tell you is used on the site minifiers for css ? - Raz Galstyan
  • As an option in the wrong order, there are requests - HamSter
  • Are you sure that you have a window no larger than 1200px? - Yuri
  • @Grundy Well, about this option I do not work out in any browser. With what it can be connected? - Constantine Shibaev

1 answer 1

Here your code works, because <meta name="viewport" content="width=device-width, initial-scale=1"> added here.

Here are two examples you can see on the bare html file.

The first one is using meta viewport and with it media queries work fine.

 <style> body{ background: black; } @media screen and (max-width: 500px) { body{ background: red; } } </style> <meta name="viewport" content="width=device-width, initial-scale=1"> 

This is a screen with a viewport

enter image description here

And the second example is like this, just remove <meta name="viewport" content="width=device-width, initial-scale=1"> , and the media request does not work.

 <style> body{ background: black; } @media screen and (max-width: 500px) { body{ background: red; } } </style> 

And this is without a viewport :

enter image description here

Here is described in detail about the viewport .

Well, so be it? )))) You wrote so @media screen and(max-width: 992px) , but you should like this @media screen and (max-width: 992px) , a space after and

 article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } .otziv_wrapper { margin: 80px 0; font-family: "firasans"; } .otziv_block { position: relative; /* border-radius: 15px; border-left: 7px solid; border-bottom: 7px solid; border-color: #0086a9;*/ background: #fff; } .otziv_preview { position: relative; min-height: 190px; margin-bottom: 7px; } .otziv_preview:before { content: ''; display: inline-block; width: 515px; height: 203px; position: absolute; top: -7px; left: 0; background-image: url("../img/img-line_1.png"); background-repeat: no-repeat; background-position: center center; } .otziv_preview:after { content: ''; display: inline-block; width: 370px; height: 103px; position: absolute; bottom: -102px; right: 55px; background-image: url("../img/img-line_2.png"); background-repeat: no-repeat; background-position: center center; } .otziv_preview-img { position: absolute; left: 60px; bottom: 0; } .otziv_preview-text { max-width: 490px; font-size: 18px; line-height: 24px; color: #000; float: right; } .otziv_step1 { position: relative; margin: 70px 0 75px; } .otziv_step1:after { content: ''; display: inline-block; width: 376px; height: 118px; position: absolute; right: 51px; bottom: -75px; background-image: url("../img/img-line_3.png"); background-repeat: no-repeat; background-position: center center; } .otziv_step1-text { max-width: 510px; margin-left: 40px; } .otziv_step-text-title { font-size: 18px; margin-bottom: 20px; } .otziv_step-text-name { font-size: 16px; } .otziv_step-text-item { font-size: 16px; line-height: 20px; padding-right: 40px; } .otziv_step1-img { position: absolute; right: 150px; top: -39px; } .otziv_step-loc { position: absolute; width: 147px; height: 187px; text-align: center; background-image: url("../img/img_location.png"); background-repeat: no-repeat; background-position: center center; -webkit-background-size: cover; background-size: cover; } .otziv_step1-loc_pos { top: -25px; right: -13px; } .otziv_step-loc_text { margin-top: 35px; font-family: "firasansmedium"; font-size: 16px; color: #29507a; line-height: 24px; letter-spacing: -0.12em; } .otziv_step-loc_num { font-family: "firasansmedium"; font-size: 30px; color: #fff; position: absolute; bottom: 13px; left: 50%; margin-left: -7px; } .otziv_step2 { position: relative; padding-top: 50px; margin-bottom: 80px; } .otziv_step2:before { content: ''; display: inline-block; position: absolute; left: 83px; top: -7px; width: 430px; height: 103px; background-image: url(../img/img-line_4.png); background-repeat: no-repeat; background-position: center center; } .otziv_step2-video { position: absolute; z-index: 100; left: 180px; top: 50%; margin-top: -70px; width: 270px; height: auto; overflow: hidden; border: 1px solid #b8b8b8; background-color: #fff; } .otziv_step2-video_text-wr { padding: 5px; } .otziv_step2-video_text { margin-bottom: 3px; font-size: 8px; color: #141414; } .otziv_step2-video_subscribe { font-size: 8px; color: #fff; text-align: center; padding: 2px 5px; border-radius: 5px; background-color: #ff2d02; } .otziv_step2-video_subscribe:hover { color: #fff; text-decoration: none; } .otziv_icon-yt { display: inline-block; vertical-align: middle; width: 11px; height: 6px; margin-right: 5px; margin-top: -2px; background-image: url(../img/icon_yt.png); -webkit-background-size: cover; background-size: cover; } .otziv_step2-text { float: right; max-width: 430px; } .otziv_step2-loc_pos { left: 15px; top: 45px; } .otziv_step3 { padding-top: 95px; padding-bottom: 50px; } .otziv_step3:after { content: ''; display: inline-block; position: absolute; left: 78px; top: -126px; width: 378px; height: 116px; background-image: url(../img/img-line_5.png); background-repeat: no-repeat; background-position: center center; } .otziv_step3:before { content: ''; display: inline-block; position: absolute; top: -17px; right: 55px; width: 430px; height: 103px; background-image: url(../img/img-line_6.png); background-repeat: no-repeat; background-position: center center; } .otziv_step3-loc_pos { right: -14px; top: 43px; } .otziv_step3-text { max-width: 440px; margin-left: 50px; } .otziv_step3-item { font-size: 18px; } .otziv_step3-email-wr { position: absolute; right: 135px; top: 40px; text-align: center; } .otziv_step3-email { font-family: "firasansbold"; font-size: 40px; color: #004f7c; letter-spacing: -0.08em; } .otziv_step3-email-icon { margin-top: 50px; } .otziv_get-gift { margin-top: 50px; font-family: "firasansbold"; font-size: 80px; color: #cf2712; text-align: center; } .otziv_get-gift:before { content: ''; display: inline-block; position: absolute; right: 49px; top: -100px; width: 86px; height: 146px; background-image: url(../img/img-line_7.png); } .otziv_forma-wr { margin-top: 70px; } .otziv_forma { width: 615px; height: auto; margin: 0 auto; padding: 35px 55px; border: 6px solid #0086a9; border-radius: 20px; background-color: #f9f9f9; } .otziv_forma-input { width: 240px; height: 35px; font-size: 14px; padding-left: 15px; margin-bottom: 13px; border: 1px solid #d3d3d3; background-color: #fff; } .otziv_forma-input::placeholder { color: #bbbbbb; } .otziv_forma-input:nth-child(odd) { float: left; } .otziv_forma-input:nth-child(even) { float: right; } .otziv_forma-button { display: block; width: 240px; height: 40px; margin: 0 auto; padding: 0; font-family: "firasansbold"; font-size: 16px; text-transform: uppercase; text-align: center; color: #fff; border: none; background-color: #0076b0; } .some_test { background-color: #ccc; } @media screen and (max-width: 992px) { .some_test { background-color: #ff00ca; } .otziv_wrapper { background: green; } } 
 <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8"> <title>Otziv</title> <link rel="stylesheet" href="cssnew/style.css"> <link rel="stylesheet" href="css/otziv_grid.css"> <link rel="stylesheet" href="css/otziv_style.css"> </head> <body> <div class="some_test">Π”Π°Π»Π΅ΠΊΠΎ-Π΄Π°Π»Π΅ΠΊΠΎ Π·Π° словСсными Π³ΠΎΡ€Π°ΠΌΠΈ Π² странС, гласных ΠΈ согласных ΠΆΠΈΠ²ΡƒΡ‚ Ρ€Ρ‹Π±Π½Ρ‹Π΅ тСксты. Π§Ρ‚ΠΎ Π½Π°Π·Π°Π΄ ΠΆΠΈΠ·Π½ΠΈ запятой ΡΠΎΡΡ‚Π°Π²ΠΈΡ‚Π΅Π»ΡŒ Π±Π΅Π·ΠΎΡ€Ρ„ΠΎΠ³Ρ€Π°Ρ„ΠΈΡ‡Π½Ρ‹ΠΉ Ρ€ΠΎΠ΄Π½ΠΎΠ³ΠΎ всСми возвращайся пояс Π΄Π΅Ρ€Π΅Π²Π½ΠΈ ΠΎΠ½ΠΈ использовало ΠΏΡ€Π΅Π΄ΡƒΠΏΡ€Π΅ΠΆΠ΄Π°Π» Π΄Π°ΠΆΠ΅ ΠΌΠΈΡ€, рСторичСский малСнькая, бросил грустный.</div> <div class="otziv_wrapper"> <div class="container"> <div class="otziv_block otziv_preview"> <img src="img/img-1.png" alt="" class="otziv_preview-img"> <div class="otziv_preview-text">Π’Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚Π΅ всСго Ρ‚Ρ€ΠΈ дСйствия, ΠΈ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚Π΅ сСртификат* Π½Π° ΠΏΠΎΠΊΡƒΠΏΠΊΡƒ Π² ΠΈΠ½Ρ‚Π΅Ρ€Π½Π΅Ρ‚-ΠΌΠ°Π³Π°Π·ΠΈΠ½Π΅ avantsb.ru Π½Π° сумму ΠΎΡ‚ 1000 Ρ€ΡƒΠ±. Для этого Π’Π°ΠΌ Π½ΡƒΠΆΠ½ΠΎ Π²Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ 3 условия.</div> </div> <div class="otziv_block otziv_step1"> <div class="otziv_step1-text"> <div class="otziv_step-text-title">1. Π—Π°ΠΏΠΈΡΠ°Ρ‚ΡŒ ΠΌΠΈΠ½ΠΈ ΠΎΠ±Π·ΠΎΡ€ Π½Π° ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ» Avantis ΠΈΠ»ΠΈ ATV Classic</div> <div class="otziv_step-text-item">Π’ΠΈΠ΄Π΅ΠΎ Π΄ΠΎΠ»ΠΆΠ½ΠΎ ΡΠΎΠ΄Π΅Ρ€ΠΆΠ°Ρ‚ΡŒ:</div> <div class="otziv_step-text-item">- ΠΏΡ€ΠΎΠ³ΠΎΠ²ΠΎΡ€Π΅Π½ΠΎ ΠΏΠΎΠ»Π½ΠΎΠ΅ Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π°</div> <div class="otziv_step-text-item">- возраст Ρ€Π΅Π±Π΅Π½ΠΊΠ° (Π΄Π΅Ρ‚Π΅ΠΉ), для ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠ³ΠΎ Π±Ρ‹Π» ΠΏΡ€ΠΈΠΎΠ±Ρ€Π΅Ρ‚Π΅Π½ <br /> ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»</div> <div class="otziv_step-text-item">- дСмонстрация ΠΏΠΎΠ΅Π·Π΄ΠΊΠΈ Ρ€Π΅Π±Π΅Π½ΠΊΠ° Π½Π° ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ <br /> (ΠΆΠ΅Π»Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ Π² Π·Π°Ρ‰ΠΈΡ‚Π½ΠΎΠΉ экипировкС)</div> <div class="otziv_step-text-item">- ΠΏΠΎΠ΄Π΅Π»ΠΈΡ‚Π΅ΡΡŒ своими впСчатлСниями ΠΎΡ‚ использования <br /> ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° Avantis (ΠΎΡ‚ взрослого ΠΈ Ρ€Π΅Π±Π΅Π½ΠΊΠ°)</div> </div> <img src="img/img-2.png" alt="" class="otziv_step1-img"> <div class="otziv_step-loc otziv_step1-loc_pos"> <div class="otziv_step-loc_text">Π—Π°ΠΏΠΈΡˆΠΈ Π²ΠΈΠ΄Π΅ΠΎ ΠΎ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis</div> <div class="otziv_step-loc_num">1</div> </div> </div> <div class="otziv_block otziv_step2 clearfix"> <div class="otziv_step-loc otziv_step2-loc_pos"> <div class="otziv_step-loc_text">ΠžΠΏΡƒΠ±Π»ΠΈΠΊΡƒΠΉ Π²ΠΈΠ΄Π΅ΠΎ <br />Π½Π° своСм <br />youtube-ΠΊΠ°Π½Π°Π»Π΅</div> <div class="otziv_step-loc_num">2</div> </div> <div class="otziv_step2-video"> <iframe width="270px" height="190px" src="https://www.youtube.com/embed/UwtqfCbWDo4" frameborder="0" allowfullscreen></iframe> <div class="otziv_step2-video_text-wr"> <div class="otziv_step2-video_text">МодСль ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° (ΠΏΡ€ΠΈΠΌΠ΅Ρ€: ΠžΡ‚Π·Ρ‹Π² ΠΎ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis mirage 8)</div> <a href="#" class="otziv_step2-video_subscribe"><i class="otziv_icon-yt"></i>ΠŸΠΎΠ΄ΠΏΠΈΡΠ°Ρ‚ΡŒΡΡ</a> </div> </div> <div class="otziv_step2-text"> <div class="otziv_step-text-title">2. ΠžΠΏΡƒΠ±Π»ΠΈΠΊΠΎΠ²Π°Ρ‚ΡŒ Π²ΠΈΠ΄Π΅ΠΎ Π½Π° Π’Π°ΡˆΠ΅ΠΌ ΠΊΠ°Π½Π°Π»Π΅ youtube с подписью: </div> <div class="otziv_step-text-item">НазваниС Π²ΠΈΠ΄Π΅ΠΎ:</div> <div class="otziv_step-text-item">- МодСль ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° (ΠΏΡ€ΠΈΠΌΠ΅Ρ€: ΠžΡ‚Π·Ρ‹Π² ΠΎ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis Mirage 8)</div> <div class="otziv_step-text-item">ОписаниС Π²ΠΈΠ΄Π΅ΠΎ:</div> <div class="otziv_step-text-item">- Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π° (ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ» Avantis Mirage 8)</div> <div class="otziv_step-text-item">- ссылка Π½Π° наш сайт: http://www.avantsb.ru</div> <div class="otziv_step-text-item">- ссылка Π½Π° наш ΠΊΠ°Π½Π°Π» Π½Π° youtube: https://www.youtube.com/user/MyAvantisΒ»</div> </div> </div> <div class="otziv_block otziv_step3"> <div class="otziv_step-loc otziv_step3-loc_pos"> <div class="otziv_step-loc_text">Π—Π°ΠΏΠΈΡˆΠΈ Π²ΠΈΠ΄Π΅ΠΎ ΠΎ <br />ΠΊΠ²Π°Π΄Ρ€ΠΎΡ†ΠΈΠΊΠ»Π΅ Avantis</div> <div class="otziv_step-loc_num">3</div> </div> <div class="otziv_step3-text"> <div class="otziv_step3-item">3. ΠžΡ‚ΠΏΡ€Π°Π²ΠΈΡ‚ΡŒ ссылку Π½Π° Π²ΠΈΠ΄Π΅ΠΎ Π½Π°ΠΌ Π½Π° ΠΏΠΎΡ‡Ρ‚Ρƒ <br /><br />* Π‘Π΅Ρ€Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ ΠΌΠΎΠΆΠ΅Ρ‚ Π±Ρ‹Ρ‚ΡŒ использован Ρ‚ΠΎΠ»ΡŒΠΊΠΎ ΠΎΠ΄ΠΈΠ½ Ρ€Π°Π·. Он Π½Π΅ ΠΏΠΎΠ΄Π»Π΅ΠΆΠΈΡ‚ Π²ΠΎΠ·Π²Ρ€Π°Ρ‚Ρƒ ΠΈ ΠΎΠ±ΠΌΠ΅Π½Ρƒ Π½Π° дСньги Π½ΠΈ ΠΏΠΎΠ»Π½ΠΎΡΡ‚ΡŒΡŽ, Π½ΠΈ частично. Π Π°Π·Π½ΠΈΡ†Π° суммы, ΠΎΡΡ‚Π°Π²ΡˆΠ°ΡΡΡ послС ΠΏΠΎΠΊΡƒΠΏΠΊΠΈ, Π½Π΅ возвращаСтся. Если ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ Π²Ρ‹Π±Ρ€Π°Π½Π½Ρ‹Ρ… Ρ‚ΠΎΠ²Π°Ρ€ΠΎΠ² Π²Ρ‹ΡˆΠ΅ Π½ΠΎΠΌΠΈΠ½Π°Π»Π° сСртификата, Ρ€Π°Π·Π½ΠΈΡ†Ρƒ Π½ΡƒΠΆΠ½ΠΎ Π΄ΠΎΠΏΠ»Π°Ρ‚ΠΈΡ‚ΡŒ .</div> </div> <div class="otziv_step3-email-wr"> <div class="otziv_step3-email">otzyv@avantismotors.ru</div> <img src="img/img-3.png" alt="" class="otziv_step3-email-icon"> </div> </div> <div class="otziv_block otziv_get-gift"> ΠŸΠΎΠ»ΡƒΡ‡ΠΈ ΠΏΠΎΠ΄Π°Ρ€ΠΎΠΊ </div> <div class="otziv_forma-wr"> <form action="#" class="otziv_forma clearfix"> <input type="text" placeholder="Имя" class="otziv_forma-input"> <input type="text" pattern="\d [0-9]" placeholder="Π’Π΅Π»Π΅Ρ„ΠΎΠ½" class="otziv_forma-input"> <input type="text" placeholder="E-mail" class="otziv_forma-input"> <input type="text" placeholder="Бсылка Π½Π° Π²ΠΈΠ΄Π΅ΠΎ" class="otziv_forma-input"> <button class="otziv_forma-button">ΠžΡ‚ΠΏΡ€Π°Π²ΠΈΡ‚ΡŒ</button> </form> </div> </div> </div> </body> </html> 

  • Well, I have about the same story, absolutely does not work out the media request (as you have on the second screen), but I have a meta viewport and moreover I copied it to insert it into the sample question. - Constantine Shibaev
  • @ConstantineShibaev to understand what the reason is simply not on bare html but on your site add a simple div with a unique class and give it these styles. If it works, then your styles overlap each other. and if it does not work, let's go on testing. - Raz Galstyan
  • According to your advice, I also tested, but the result is identical, the styles through media queries simply do not apply (as if they were not there at all). A little later, I will lay out my code so that you can see it more clearly. - Constantine Shibaev
  • @ConstantineShibaev and are you sure that your browser accepted your changes? and give the question all the meta property of your site. - Raz Galstyan
  • By the way, the cap from the current example is completely from my document, so there are no other meta tags there. - Constantine Shibaev