Rolling Your Own Grid Layouts on the Fly Without a Framework
designshack.co.uk
designshack.co.uk
@space: 10px;
@block: 60px;
.block-width ( @blocks ) { width: (@block * @blocks) + ((@blocks - 1) * (@space * 2) ); }
I consider this to be the canonical piece on grid-based design:http://www.1kbgrid.com/css/grid.css - 960px example
FYI, excluding IE6, :first-child pseudo-class is universally supported. That would be a cleaner way to handle this rather than manually adding a class to the markup.
http://stackoverflow.com/questions/4308989/are-the-decimal-p...