On the Bootstrap 3 media queries documentation it says:
We use the following media queries in our Less files to create the key breakpoints in our grid system.
Extra small devices (phones, less than 768px):
No media query since this is the default in BootstrapSmall devices (tablets, 768px and up):
@media (min-width: @screen-sm-min) { ... }
Medium devices (desktops, 992px and up):
@media (min-width: @screen-md-min) { ... }
Large devices (large desktops, 1200px and up):
@media (min-width: @screen-lg-min) { ... }
Are we supposed to be able to use the @screen-sm
, @screen-md
, and @screen-lg
names in our media queries as well? Because it doesn't work for me. I have to use pixel measurements such as @media (min-width: 768px) {...}
before it will work. Am I doing something wrong?
Also, is the reference to 480px for extra small devices a typo? Shouldn't that say up to 767px? (since removed from the documentation)
Best Answer
Bootstrap 4 Media Queries
Bootstrap 4 provides source CSS in Sass that you can include via Sass Mixins:
Bootstrap 3 Media Queries
Bootstrap 2.3.2 Media Queries
Resource from : https://scotch.io/quick-tips/default-sizes-for-twitter-bootstraps-media-queries