3 ms·
I did this recently. I ended up using lesscss for the gory details: @space: 10px; @block: 60px; .block-width ( @blocks ) { width: (@block * @blocks) + ((
by peteretep 15y ago
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 http://www.slideshare.net/riomusi/grids-are-good-2593754
- jvain 15y agoThere'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 http://www.subtraction.com/2010/11/05/i-wrote-a-book