Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap 3 max & min resolutions for col-*

I am quite impressed with the latest version of bootstrap. And I have started to work on it. Now I can understand that the grid system works on 4 column class size variants, with the following definition:

col-xs-* ---> mobile

col-sm-* ---> tablet

col-md-* ---> laptops

col-lg-* ---> large monitors

However, I need to know, what is the minimum and maximum resolutions for which these classes gets applied on so that I can design the layout better.

I am asking this because, I could see col-md class applied at 800px. I generated this resolution using Firefox's responsive view simulator.

like image 376
Vivek S Avatar asked Feb 20 '14 21:02

Vivek S


People also ask

Is Bootstrap 3 or 4 better?

While Bootstrap 3 provided Skip navigation, Nested headings, and color contrast, Bootstrap 4 has improved the accessibility with its components. Styling and layout from version 4 can be applied to a wide range of markup structures.

Is Bootstrap 3 still used?

Bootstrap 3 is the most stable version of Bootstrap, and it is still supported by the team for critical bugfixes and documentation changes.

Should I upgrade Bootstrap 3 to 4?

You should know that there is still support to continue using Bootstrap 3, but due to some changes that arose in the structure of Bootstrap 4 over its previous version, it is better to start developing or migrating our applications to this incredible new version.

Does Bootstrap have XXL?

$grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px );


2 Answers

From the documentation for the grid:

/* Extra small devices (phones, less than 768px) / / No media query since this is the default in Bootstrap */

/* Small devices (tablets, 768px and up) */ @media (min-width: @screen-sm-min) { ... }

/* Medium devices (desktops, 992px and up) */ @media (min-width: @screen-md-min) { ... }

/* Large devices (large desktops, 1200px and up) */ @media (min-width: @screen-lg-min) { ... }

It also provides the container widths:

  • .col-xs-*: none (auto)
  • .col-sm-*: 750px
  • .col-md-*: 970px
  • .col-lg-*: 1170px
like image 89
Joe C Avatar answered Oct 29 '22 21:10

Joe C


col-xs-* = less than 768px

col-sm-* = 768px and up

col-md-* = 992px and up

col-lg-* = 1200px and up

like image 37
moodyjive Avatar answered Oct 29 '22 22:10

moodyjive