Hello. The problem is in media queries. I'm a little confused. Indicate where my mistake is. Icon with "Service". At 1200px screen width, I need the width of this block to be 46.1%, and when the screen becomes less than 992px, I need the width of this block to be 55.1%. Made media requests, but the block remains 55.1%. In general, below code and screenshots.

HTML

<div class="container"> <div class="row our_services__box"> <div class="col-md-4"> <div class="box_services__delivery_icon box__border"></div> <p class="our_services__name">Доставка</p> <p class="our_services__des">Благодаря Π½Π°Π»ΠΈΡ‡ΠΈΡŽ Ρ‚ΠΎΠ²Π°Ρ€Π½Ρ‹Ρ… запасов Π½Π° Π½Π°ΡˆΠΈΡ… складах, ΠΌΡ‹ Π³Π°Ρ€Π°Π½Ρ‚ΠΈΡ€ΡƒΠ΅ΠΌ ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹Π΅ сроки доставки ΠΏΡ€ΠΈΠΎΠ±Ρ€Π΅Ρ‚Π΅Π½Π½ΠΎΠΉ ΠΈΠ»ΠΈ Π·Π°ΠΊΠ°Π·Π°Π½Π½ΠΎΠΉ ΠΌΠ΅Π±Π΅Π»ΠΈ.</p> </div> <div class="col-md-4"> <div class="box_services__installation_icon box__border"></div> <p class="our_services__name">Π‘Π±ΠΎΡ€ΠΊΠ°</p> <p class="our_services__des">Благодаря Π½Π°Π»ΠΈΡ‡ΠΈΡŽ Ρ‚ΠΎΠ²Π°Ρ€Π½Ρ‹Ρ… запасов Π½Π° Π½Π°ΡˆΠΈΡ… складах, Π° Ρ‚Π°ΠΊΠΆΠ΅ эффСктивной схСмС поставок.</p> </div> <div class="col-md-4"> <div class="box_services__service_icon box__border"></div> <p class="our_services__name">ΠžΠ±ΡΠ»ΡƒΠΆΠΈΠ²Π°Π½ΠΈΠ΅</p> <p class="our_services__des">Благодаря эффСктивной схСмС поставок, ΠΌΡ‹ Π³Π°Ρ€Π°Π½Ρ‚ΠΈΡ€ΡƒΠ΅ΠΌ ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹Π΅ сроки доставки ΠΏΡ€ΠΈΠΎΠ±Ρ€Π΅Ρ‚Π΅Π½Π½ΠΎΠΉ ΠΈΠ»ΠΈ Π·Π°ΠΊΠ°Π·Π°Π½Π½ΠΎΠΉ ΠΌΠ΅Π±Π΅Π»ΠΈ.</p> </div> </div> </div> 

CSS

 @media (min-width: 1200px) { .box_services__service_icon { width: 46.1%; } } @media (min-width: 992px) { .box_services__service_icon { width: 55.1%; } } 

enter image description here

enter image description here

  • one
    change the order of block definition in css - teran
  • Thank! Blunted ... - Valery
  • Why do you use percentage sizes? This is not a very good code style. I used to specify in pixels, now I use the bootstrap grid and I'm not worried - Natalya
  • @ Natalia, whence the information that this is a "bad style"? The usual "rubber style" ... you might think using the bootstrap mesh you do not use this "bad style" ... you also use it, but at the same time you add another bunch of other "bad style" that is available in the bootstrap. - MedvedevDev
  • @MedvedevDev no one forbids the use of rubber layout, you can not even use CSS at all. But there are certain trends in the community that you sometimes need to listen to. This is the first. Secondly, the bootstrap allows you to perform the same operations many times faster, which increases performance. Thirdly, it is possible that a person did not delve into the bootstrap and does not know what opportunities he gives, and would be happy to use it ... - Natalya

0