Skip to main content
/
/
/
Breakpoint

Breakpoint

Conditionally display content based on screen width

Bifrost uses some default viewport width values for responsive breakpoints.

Device pixels vs CSS px unit

Breakpoint names

Namesmallmediumlargexlxxl
Screen width600px960px1280px1600px1920px

CSS class names

CSS classnameDisplayed for screensDevices
.to-smallup to 600px wideMobile Portrait
.from-small600px and widerMobile Landscape Tablet Desktop
.to-mediumup to 960px wideMobile Tablet Portrait
.from-medium960px and widerTablet Landscape Desktop
.to-largeup to 1280px wideMobile Tablet Small Desktop
.from-large1280px and widerMedium-XL Desktop
.to-xlup to 1600px wideMobile Tablet Small-Medium Desktop
.from-xl1600px and widerLarge-XL Desktop (Fixed sidebar)
.to-xxlup to 1920px wideMobile Tablet Small-Large Desktop
.from-xxl1920px and widerXL Desktop

Examples

Try resizing your window to test the demos below:

to-small (0px-599px)
from-small (600px +)
to-medium (0px-959px)
from-medium (960px +)
to-large (0px-1279px)
from-large (1280px +)

You can combine one .from-* class and a .to-* class to display only when between two breakpoints.

to-small (0px-599px)
from-small to-medium (600px-959px)
from-medium (960px +)