3 ms·
Problem is, defining quantity in the class name doesn’t work. .m10 may be fine for desktop but not for mobile. Then you’ll have media queries which define .m1
by tambourine_man 8y ago
Problem is, defining quantity in the class name doesn’t work.
.m10 may be fine for desktop but not for mobile.
Then you’ll have media queries which define .m10 as margin: 5px or something, which is nuts.
You could go for unspecified .mSmall etc, but in real life, things tend to be more specific and messier, in my experience.
- dsego 8y agoIn bootstrap 4 you get responsive variants like .m-sm-1 and .m-lg-1. Then you can have class="m-3 m-sm-1" to have different margins for mobile and desktop.