See the auto layout columns section for more examples.
Bootstrap more gutter in two columns.
Bootstrap s grid system is responsive and the columns will re arrange depending on the screen size.
Recently i had a need to have a default grid in bootstrap but also on the homepage i needed to have 4 boxes that butted right up against each other.
The following example shows how to get two columns starting at tablets and scaling to large desktops with another two columns equal widths within the larger column at mobile phones these columns and their nested.
Use the col class on a specified number of elements and bootstrap will recognize how many elements there are and create equal width columns.
Now here s our code for the no gutters class.
Bootstrap columns can be reordered depending on screen size.
On a big screen it might look better with the content organized in three columns but on a small screen it would be better if the content items were stacked on top of each other.
Use no gutters class in a row to ditch all the gutters between the columns.
So if you want three equal width columns across you can use col 4.
I came up with a handy no gutters class which has some pretty basic css that you apply to your row tag holding your columns.
Use the row no gutters class to remove the gutters from a row and its columns.
Use mr auto class to force sibling columns to move away from each other.
Use offset classes to move the column to the left.
Regular bootstrap version below with kittens.
In the example below we use three col elements which gets a width of 33 33 each.