7 comments

[ 4.4 ms ] story [ 29.6 ms ] thread
I did this recently. I ended up using lesscss for the gory details:

  @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.slideshare.net/riomusi/grids-are-good-2593754

> I also threw a “last” class on the last column to help us clear the margin.

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.