What is the number in the Bootstrap `.col-sm-...` (i.e. `.col-sm-6`) class for? Can I use any number I want?


#1

Question

What is the number in the Bootstrap .col-sm-... (i.e. .col-sm-6) class for? Can I use any number I want?

Answer

The number in the Bootstrap .col-sm-... class is the number of columns you want a particular column to span, you can choose whole numbers between 1 - 12. In a single Bootstrap .row the columns must add up to 12 columns total.