Reputation: 2496
Does anybody knows what is best pratice to start a bootstrap project?
Shall elements start with
col-md.*
or
col-sm.*
Example what is common pratice?
<div class="col-md-12">
</div>
or
<div class="col-sm-12">
</div>
Upvotes: 1
Views: 80
Reputation: 665
It depends what device your almost users use.
.col-xs-*
.col-sm-*
.col-md-*
.col-lg-*
If you don't know what device your users use and you know the screen resolution, you can reference the table:
.col-sm-*
.col-md-*
.col-lg-*
Upvotes: 1
Reputation: 574
Starting a Bootstrap project is best supported using the code from github or generating it using your IDE.
Your examples are both valid: the only difference is col-md-12
defines a column grid with medium sized input and a dozen columns and col-sm-12
does exactly the same twelve columns but in small size.
Upvotes: 0