4thSpace
4thSpace

Reputation: 44310

Twitter Bootstrap 4 column grid?

Does Bootstrap 3 offer a 4 column grid? Basically .col-md-2. I think it is only 1, 3, 4, 6, 8 , 12?

If no 2, is there some other way to build a 4 column grid?

Upvotes: 0

Views: 544

Answers (1)

hamitron
hamitron

Reputation: 219

I think you have it in reverse

class="col-md-2"    

Would mean you wanted 6 columns on the page.

The number after the 'column - size' determines the width of the column (each number represents one column) so the larger the number the wider the element on the page, not the amount of columns you want on the page.

So in order to make a 4 column grid your css class should be:

class="col-md-3"    

so counting by up the widths 3+3+3+3 = 12

Upvotes: 4

Related Questions