Reputation: 149
If col-lg and col-md is not specifed in the class, then will col-sm be applied for all the large screens?
Upvotes: 1
Views: 201
Reputation: 39
Yes, In bootstrap if you use only class="col-sm-4" it will automatically adjust the property of "col-sm-4" for all screens.
Upvotes: 2
Reputation: 3371
Yes.
From bootstrap,
Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, e.g. applying any .col-md-* class to an element will not only affect its styling on medium devices but also on large devices if a .col-lg-* class is not present.
Upvotes: 3