Home › Forums › CSS › CSS best practice, lots of classes or larger class definitions › Re: CSS best practice, lots of classes or larger class definitions
May 23, 2012 at 9:55 am
#103326
Member
This is one of the reasons preprocessors are gaining popularity. You can use a minimal number of classes but not end up with a huge CSS file. But if you’re not able to use one then I’d just be sensible about the number of classes used, like the guys above said; helper classes are very useful but don’t take it to the extreme and start adding classes for every attribute. It’s better for the 1 CSS file to be larger rather than for many HTML files to be bloated.