Skip to content

Instantly share code, notes, and snippets.

@NikhilMath
Last active March 24, 2023 17:26
Show Gist options
  • Save NikhilMath/85e9890c73e6c46cffdf5788db935e7a to your computer and use it in GitHub Desktop.
Save NikhilMath/85e9890c73e6c46cffdf5788db935e7a to your computer and use it in GitHub Desktop.
Bootstrap 5 Media Query to add to the bottom of CSS

Bootstrap 5 Media Queries

/* ------------------------- Bootstrap Media Queries ------------------------ */
/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 36rem) {
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 48rem) {
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 62rem) {
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 75rem) {
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 87.5rem) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment