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.
Thanks to [quote=“aubsrey, post:1, topic:361704, full:true”]
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.
[/quote]
aubsrey
!
If it doesn’t add up to twelve, it will assume the next element as the completion to make up twelve columns.
they are essentially divs with fancy names. They are defined that way under the HTML 5 specs to add more semantic meaning to our content.
Earlier we used to write those elements as <div class=“section”> <div class=“figure”> and so on. We can still use it like that but using semantic names gives more meaning to your html code.
For more information you can go through the following article