Bootstrap breakpoints are predefined screen sizes that enable responsive design across devices. The 5 breakpoints in Bootstrap 5 are: 1. xs (extra small,
Bootstrap breakpoints are predefined screen sizes that allow you to control how your layout and content adapt across different devices. They are the foundation of Bootstrap’s responsive design system, enabling you to build layouts that automatically adjust for mobile phones, tablets, desktops, and larger screens.

Each breakpoint corresponds to a minimum viewport width, and they’re used in CSS classes, Sass variables, and utility mixins to apply responsive styles.
The 5 Bootstrap Breakpoints (as of Bootstrap 5)
Bootstrap 5 uses five main breakpoints, each with a specific naming convention and screen width:

- xs (extra small) – Default; for screens less than 576px (no prefix needed)
- sm (small) – ≥576px
- md (medium) – ≥768px
- lg (large) – ≥992px
- xl (extra large) – ≥1200px
- xxl (extra extra large) – ≥1400px
These breakpoints are used in class names to control visibility and grid column behavior. For example:
<div class="col-md-6 col-lg-4">Content</div>
This means:

- On medium screens (≥768px), take 6 out of 12 columns (half width)
- On large screens (≥992px) and up, take 4 columns (one-third width)
Common Uses of Breakpoints
- Grid System: Define how many columns an element spans at different screen sizes.
- Responsive Utilities: Show or hide content based on screen size:
<p class="d-none d-md-block">Visible only on medium and larger screens</p>
- Custom CSS: Use Sass or media queries to write responsive styles:
@include media-breakpoint-up(lg) { .custom-class { font-size: 20px; } }
Key Tips
- Breakpoints are inclusive —
md
applies to medium and all larger screens unless overridden. - Mobile-first approach: Start styling for small screens, then use breakpoints to adjust for larger ones.
- You don’t need to remember exact pixel values — just use the prefixes (
sm
,md
, etc.) in your class names.
Basically, Bootstrap breakpoints make it easy to create flexible, responsive designs without writing complex media queries from scratch.
The above is the detailed content of What are Bootstrap breakpoints?. For more information, please follow other related articles on the PHP Chinese website!
- Breakpoints are inclusive —

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

TheBootstrapGridSystemisaresponsive,mobile-firstgridsystemthatsimplifiescreatingcomplexlayoutsforwebdevelopment.Itusesa12-columnlayoutandoffersflexibilityfordifferentscreensizes,ensuringvisuallyappealingdesignsacrossdevices.

Bootstrapsimplifiescreatingresponsiveandelegantforms.Keypointsinclude:1)Startwithbasicformcomponentsforintuitivedesign.2)Customizeformsforcompactnessorspecificneeds.3)Implementbothclient-sideandserver-sidevalidationforsecurity.4)Optimizeperformanceby

The advantage of creating forms with Bootstrap is that it provides a consistent and responsive design, saving time, and ensuring cross-device compatibility. 1) Basic forms are simple to use, such as form-control and btn classes. 2) Vertical forms achieve a more structured layout through grid classes (such as col-sm-2 and col-sm-10).

TheBootstrapGridSystemcanbeoptimizedforbetteraccessibility.1)UsesemanticHTMLtagslikeandinsteadofgenericelements.2)ImplementARIAattributestoenhancescreenreaderfunctionality.3)ManagefocusorderlogicallywithBootstrap'sorderclasses.4)Useutilityclassesforp

BootstrapGridSystemisbetterforquick,simpleprojects;Flexboxisidealforcustomizationandcontrol.1)Bootstrapiseasiertouseandfastertoimplement.2)Flexboxoffersmorecustomizationandflexibility.3)Flexboxcanbemoreperformant,butthedifferenceisusuallyminor.4)Boot

Bootstrapformscanleadtoerrorslikemisusingthegridsystem,improperformcontrols,validationissues,neglectingcustomCSS,accessibility,andperformance.Toavoidthese:1)Usecolumnclasseslikecol-sm-orcol-md-forresponsiveness;2)Wrapinputfieldsin.form-groupforproper

The dropdown menu of BootstrapNavbar can be implemented through the following steps: 1. Use the dropdown class and the data-bs-toggle="dropdown" attribute. 2. Ensure responsive design. 3. Optimize performance. 4. Improve accessibility. 5. Custom style. This helps create a user-friendly navigation system.

Bootstrap'sGridSystemhelpsinbuildingresponsivelayoutsbyofferingflexibilityandeaseofuse.1)Itallowsquickcreationofadaptablelayoutsacrossdevices.2)Advancedfeatureslikenestedrowsenablecomplexdesigns.3)Itencouragesaresponsivedesignphilosophy,enhancingcont
