Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the order of the these classes; col-sm , col-lg ,col-md & col-xs differ

I have a question regarding bootstrap 3.0 classes order, now if I write the following where I am starting from sm till lg:-

<div class="col-sm-4 col-md-4 col-lg-4 address">

will it have any different if I change the class order as follow from lg to sm:-

<div class="col-lg-4 col-md-4 col-sm-4  address">

or the order does not matter ?

like image 237
John John Avatar asked Oct 19 '22 17:10

John John


People also ask

What is Col SM and COL MD?

col-sm- (small devices - screen width equal to or greater than 576px) . col-md- (medium devices - screen width equal to or greater than 768px) . col-lg- (large devices - screen width equal to or greater than 992px)

What is Col MD 4 Col SM 4?

col-md-4: This class is used when the device size is medium or greater than 768px and the maximum width of container is 720px and you want the width equal to 4 columns. col-xs-1: This class is used when the device size is extra small (mobile) and when you want the width to be equal to 1 column.

What does Col MD 5 class means?

col-md- stands for column medium ≥ 992px. col-xs- stands for column extra small ≥ 768px. The pixel numbers are the breakpoints, so for example col-xs is targeting the element when the window is smaller than 768px(likely mobile devices)...

What is the difference between Col MD 6 and Col SM 6 in Bootstrap?

If you choose col-sm, then the columns will become horizontal when the width is >= 768px. If you choose col-md, then the columns will become horizontal when the width is >= 992px. If you choose col-lg, then the columns will become horizontal when the width is >= 1200px. This answer explains it best.


1 Answers

<div class="col-sm-4 col-md-4 col-lg-4 address">

and

<div class="col-lg-4 col-md-4 col-sm-4 address">

both will be work same. Check this example fiddle

like image 135
Gaurav Gandhi Avatar answered Oct 21 '22 15:10

Gaurav Gandhi