CodingFriend
CodingFriend

Reputation: 149

In bootstrap, Is class="col-sm-4" will be considered as class="col-sm-4 col-md-4 col-lg-4", if col-md and col-lg are not specied?

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

Answers (2)

Akanksha Kushwaha
Akanksha Kushwaha

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

Kris
Kris

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

Related Questions