CSS grid padding

Soldato
Joined
27 Dec 2005
Posts
17,296
Location
Bristol
I think I'm having a blonde moment here. I'm putting together a website from scratch based on a standard grid system with the following options:

[1column]
[2column] [2column]
[3column] [3column] [3column]

What is the neatest way of having the fewest css classes whilst allowing for padding? For any segments, ie 2column and 3column, how can you neatly specify say a padding of 20px in between each, whilst keeping the edges flush? Does that make sense?

Previously I've used a spacer div but at the moment that doesn't feel like it'd be the neatest way.
 
Soldato
Joined
5 Feb 2006
Posts
3,524
im not sure if im reading the question right but one thing that i only recently realised about the 960 grid system is in the class where you put grid_3 for example. you can also add

prefix_ ( insert number here ) / suffix_ ( insert number here ) that will essentially create a fake grid in front of it

you can also add alpha / omega which removes some of the padding to the left / right of the div.

this probably explains it a whole lot better http://sixrevisions.com/web_design/the-960-grid-system-made-easy/
 
Back
Top Bottom