A
A
ayapergenov2015-09-21 10:52:48
css
ayapergenov, 2015-09-21 10:52:48

How to properly inject responsive classes for Bootstrap grid?

Why does the Bootstrap site have classes named span4 or span8 in the samples, but on production projects they use the names col-md-4 or col-xs-4 or sm or lg? I understand that these classes apply to screens of different widths. From the smallest to the largest.
From which class is it correct to start writing from the smallest xs or the largest lg?
Please answer both questions.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2015-09-21
@ayapergenov

spanX - used in version 2, col-x in version 3
getbootstrap.com/css

S
Stalker_darkway, 2015-09-21
@hronik87

You need to proceed from the requirements of the layout. In general, the bootstrap itself advises starting with mobile first, but it’s more convenient for me to rivet from large sizes. I hope that the logic of the columns is clear to you and you have no questions about this. The spans have a difference in versions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question