A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mdbootstrap.com/docs/vue/layout/breakpoints/ below:

Vue Bootstrap Breakpoints - free examples & tutorial

Breakpoints Vue Bootstrap 5 Breakpoints

Breakpoints are the triggers in Bootstrap for how your layout responsive changes across device or viewport sizes.

Core concepts Available breakpoints

Bootstrap includes six default breakpoints, sometimes referred to as grid tiers, for building responsively. These breakpoints can be customized if you’re using our source Sass files.

Breakpoint Class infix Dimensions X-Small None 0–576px Small sm ≥576px Medium md ≥768px Large lg ≥992px Extra large xl ≥1200px Extra extra large xxl ≥1400px

Each breakpoint size was chosen to be a multiple of 12 and to be representative of a subset of common device sizes and viewport dimensions. They don’t specifically target every use case or device, but the provide ranges provide a strong and consistent foundation to build on for any nearly device.

These breakpoints are customizable via Sass—you’ll find them in a Sass map in our _variables.scss stylesheet.

Media queries

Since Bootstrap is developed to be mobile first, we use a handful of media queries to create sensible breakpoints for our layouts and interfaces. These breakpoints are mostly based on minimum viewport widths and allow us to scale up elements as the viewport changes.

Min-width

Bootstrap primarily uses the following media query ranges—or breakpoints—in our source Sass files for our layout, grid system, and components.

These Sass mixins translate in our compiled CSS using the values declared in our Sass variables. For examp

Max-width

We occasionally use media queries that go in the other direction (the given screen size or smaller):

These mixins take those declared breakpoints, subtract .02px from them, and use them as our max-width values. For example:

Why subtract .02px? Browsers don’t currently support range context queries, so we work around the limitations of min- and max- prefixes and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision.

Single breakpoint

There are also media queries and mixins for targeting a single segment of screen sizes using the minimum and maximum breakpoint widths.

For example the @include media-breakpoint-only(md) { ... } will result in :

Between breakpoints

Similarly, media queries may span multiple breakpoint widths:

Which results in:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4