27

I have looked at other questions and the bootstrap documentation and cant seem to find out what these classes do to elements. Any help is appreciated! Im just trying to make my search bar be 1/4th the size on a large viewport, 1/3 the size on a medium viewport, and 100% the size on a small viewport!

dippas
  • 58,591
  • 15
  • 114
  • 126
skyleguy
  • 979
  • 3
  • 19
  • 35

1 Answers1

69

Those are bootstrap spacing utilities classes :

mr-sm-2:

r - for classes that set margin-right or padding-right

my-2, my-lg-0:

y - for classes that set both *-top and *-bottom

the m

m - for classes that set margin

you can see the notation from boostrap spacing here


sm and lg are utilities classes that everyone who uses bootstrap are use to see it:

sm - small

lg - large

dippas
  • 58,591
  • 15
  • 114
  • 126
  • Is that means my-2 is equal to my-lg-2? **lg** here is just for other programmers to see? – Sam Feb 23 '21 at 06:25