Discover how a few simple size labels can save you hours of frustrating CSS work!
Why Breakpoint tiers (xs, sm, md, lg, xl, xxl) in Bootsrap? - Purpose & Use Cases
Imagine you want your website to look good on phones, tablets, laptops, and big screens. You try to write separate styles for each screen size by guessing widths and changing CSS manually.
This manual way is slow and confusing. You might forget to update some styles or make mistakes that break the layout on certain devices. Testing every size takes forever.
Breakpoint tiers like xs, sm, md, lg, xl, and xxl in Bootstrap let you write styles that automatically adjust at set screen widths. You just pick the right tier and Bootstrap handles the rest.
@media (max-width: 600px) { .menu { font-size: 12px; } } @media (min-width: 601px) and (max-width: 900px) { .menu { font-size: 16px; } }
<div class="d-sm-none d-md-block">Content</div>
You can build flexible, responsive websites that look great on any device without writing complex media queries yourself.
A news website uses breakpoint tiers to show a simple menu on phones (xs), a bigger menu on tablets (sm), and a full navigation bar on desktops (md and up).
Manual screen size handling is slow and error-prone.
Breakpoint tiers provide easy, predefined screen widths.
They help create responsive designs that adapt smoothly.