News for hackers. Stuff that matters.
Re:Rolling Your Own Grid Layouts on the Fly Without a Framework by peteretep on Wednesday July 06, 2011 @05:17PM (#2735933)
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

Re:Rolling Your Own Grid Layouts on the Fly Without a Framework by jvain on Thursday July 07, 2011 @04:37AM (#2737736)
There's a new book from Khoi Vinh, just read it and liked it a lot. Also it's the first book on applying grid based design on web sites instead of print:

http://www.subtraction.com/2010/11/05/i-wrote-a-book

Re:Rolling Your Own Grid Layouts on the Fly Without a Framework by nhebb on Wednesday July 06, 2011 @05:31PM (#2735972)
I know it's popular to be a contrarian, but for us non web designers who occasionally need to do page layout, the 960 Grid generator at http://grids.heroku.com/ is great. It doesn't suffer from the the cons that the author mentions - mainly bloat and overreach.
Re:Rolling Your Own Grid Layouts on the Fly Without a Framework by oscilloscope on Wednesday July 06, 2011 @06:13PM (#2736177)
1 KB Grid is even more minimal, with no hack selectors like clearfix to puzzle over:

http://www.1kbgrid.com/

http://www.1kbgrid.com/css/grid.css - 960px example

Re:Rolling Your Own Grid Layouts on the Fly Without a Framework by jackmoore on Wednesday July 06, 2011 @07:07PM (#2736366)
> 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.

Re:Rolling Your Own Grid Layouts on the Fly Without a Framework by pseudonimble on Wednesday July 06, 2011 @05:36PM (#2735996)
Pretty sure you can't have a width of 222.75px, it would be rounded up to the nearest pixel and wouldn't fit in the container.
Re:Rolling Your Own Grid Layouts on the Fly Without a Framework by superchink on Wednesday July 06, 2011 @05:51PM (#2736077)