TIL Higher Bootstrap screen resolutions
POSTED ON:
Top 6 Desktop Screen Resolutions (via Statcounter)
(as of 2020-06-27)
- 1366x768 - 23.49%
- 1920x1080 - 19.91%
- 1536x864 - 8.65%
- 1440x900 - 7.38%
- 1280x720 - 4.89%
- 1600x900 - 4.01%
Why are bootstrap breakpoints so low?
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
);
Instead, use these breakpoints.
/* set the overriding variables */
$grid-breakpoints: (
xxxs: 0,
xxs: 320px,
xs: 568px,
sm: 667px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1440px,
xxxl: 1600px
);
With this method, we've added the new grid breakpoints, and ensured these new breakpoints work everywhere in Bootstrap including the grid, responsive utilities for spacing, display, flexbox, alignment, positioning, etc...
Related TILs
Tagged: webdev