I have seen some projects using something like
<div class="col-xs-12 col-sm-8 col-md-6 col-lg-4">
Why they use multiple col-?
I have seen some projects using something like
<div class="col-xs-12 col-sm-8 col-md-6 col-lg-4">
Why they use multiple col-?
Because we can get it right for all devices for eg small devices , medium devices, small devices, xtra small devices Xs - extra small device Md - medium device Sm- small device
From the bootstrap doc:
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.