BS4 Grid XSmall
Extra Small Grid Example
 | Extra small | Small | Medium | Large | Extra Large |
---|---|---|---|---|---|
Class prefix | .col- | .col-sm- | .col-md- | .col-lg- | .col-xl- |
Screen width | <576px | >=576px | >=768px | >=992px | >=1200px |
Let’s say we have a straightforward two-column layout. For EVERY device, we would like the columns to be split 25%/75%.
The classes listed below will be added to our two columns:
....
....
A 25%/75% split will be produced on all devices (extra small, small, medium, large, and xlarge) by using the following example.
col-3
col-9
Example
Lorem ipsum...
Sed ut perspiciatis...
Note: You do not have to use all 12 of the available columns; just make sure the total comes up to 12 or less.
You would use .col-4 and .col-8 for a 33.3%/66.6% split (and .col-6 and .col-6) for a 50%/50% split:
col-4
col-8
col-6
col-6
Example
Lorem ipsum...
Sed ut perspiciatis...
Lorem ipsum...
Sed ut perspiciatis...
Auto Layout Columns
You can easily make columns with the same width on all devices using Bootstrap 4 by removing the number from .col-* and using the .col class solely on the designated number of col elements. Bootstrap will determine the number of columns and set the width of each column to match:
1 of 2
2 of 2
1 of 4
2 of 4
3 of 4
4 of 4