Bootstrap 4 CSS Breakpoints

Ever wondered exactly what the breakpoints are the Bootstrap 4 media queries? Well, wonder no more!

Bootstrap 4 breakpoints
*/
 
/* 
Extra small devices (portrait phones, less than 576px) 
No media query since this is the default in Bootstrap because it is "mobile first"
*/
 
 
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {  
 
}
 
/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {  
 
}
 
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
 
}
 
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {  
    
}

Obviously you can create your own media queries using these as a template. Swap min-width for max-width if you want to create rules that apply “up to” a certain screen width.

Be the first to comment

Leave a Reply

Your email address will not be published.


*