News for hackers. Stuff that matters.
Re:Less.js will obsolete CSS by isleyaardvark on Sunday June 20, 2010 @09:47AM (#1446449)
I'll give another example with mixins: clearfix. I've seen webpages littered with class="clearfix" all over the HTML. That doesn't do anybody any good. With a CSS preprocessor you can define a clearfix mixin and just write it something like:

.class-name .clearfix font-size: 1.2em

There are other ways to do it like one long string of selectors followed by the clearfix code, but they're not as convenient or readable.

There are no comments on this comment yet.