by Semiapies · 15y ago · 0 comments
<div class="column grid_12"><p>12</p></div>
OFFS, people. You've got an excellent CSS preprocessor with mixin capability here, use it. Do something like this: #sidebar {
.column;
.grid_12;
// other styling
}
and then this: <div id="sidebar"><p>twelve</p></div>
It's easy, clean, and doesn't maul your markup..column and .grid_12 looks more like classes than CSS properties to me.
(And if you're rolling your own, you can even be more concise - such as, instead of invoking theWidth() twelve times to build your classes as shown here, make an atGridColumn() function and skip making those classes.)