BS Grid/Small
Bootstrap Grid Example: Small Devices
---- SCROLL MUKAVU ----
Assume our layout is simple, with two columns. We want the columns to be split 25%/75% for small devices.
Tip: Small devices have screens ranging in width from 768 to 991 pixels.
For small devices, we shall utilize the .col-sm-* class.
We will include the following classes in our two columns:
....
....
Now Bootstrap will say, “At small sizes, look for classes with -sm- in them and use those.”
The following example yields a 25%/75% split for small (medium, and big) devices. On extra tiny smartphones, it will automatically stack (100%).
---- IMAGE MUKAVU ----
Example
Hello World!
Lorem ipsum...
Sed ut perspiciatis...
Note: Make sure that the sum always equals 12.
For a 33.3%/66.6% split, you would use .col-sm-4 and .col-sm-8.
---- IMAGE MUKAVU ----
Example
Hello World!
Lorem ipsum...
Sed ut perspiciatis...
The following chapter demonstrates how to set a different split percentage for medium devices.