I tried to implement a change of buttons for different screens, but in the end only the first

@media screen and (min-width: 1200px) { .btn {width: calc(1200px/3)} } @media screen and (max-width: 1199px) { .btn {width: 100%} } 
  • performed when? At 1200+? - MedvedevDev
  • Yes, but the second one completely ignores - Eugene the Lonely
  • well, uh, logical .... the second condition is fulfilled with max width 1199 .... (min-width - from and to plus infinity, max-width - from and to minus infinity) - MedvedevDev
  • The problem is that it does not work when the screen is reduced - Eugene the Lonely
  • There is no computer at hand yet, but in theory it should work, see if you missed ; after each instruction. - ishidex2

0