PixelGrid X
2010-01-16 @ 15:22Why use a grid system?
- It keeps your code more structured and organized.
- It’s easier to overview.
- It makes you build new websites faster.
- It makes you update your websites faster.
Live demo preview
960 pixels wide
1152 pixels wide
Classes overview
The x-class is the grid column. The box-class is the one you add your styles to. To make a nice code structure you can add head-, body– and foot-classes.
This is an example of a complete PixelGrid X skeleton:
Classes explained
x-class
Info
- The x-class is the grid column.
- Besides the x it has a number (like 480) which displays how many pixels wide the class is.
What to do
- Add styles to the x-class if you like, but only if it’s relevant to the whole grid column.
- When adding other x-classes, add them directly within an x-class, never inside a box-class. If you do, the grid will not function properly.
Warnings
- Never add padding or margins to the x-class. If you do, the grid will not function properly. Add it to the box-class instead.
box-class
Info
- The box is the container of all HTML code inside the box.
- When adding HTML, the box class is required to not affect the size of the containing x-class.
What to do
- Write all HTML code inside the box.
- You can add more than one box into a grid column.
- Add extra classes or IDs if you like.
Warnings
- Never add x-classes inside a box-class. Add them inside another x-class instead.
Optional classes
head-class
- The head class could be used as a title of the box.
- This class is optional.
body-class
- The body class is used for the box body content.
- This class is optional.
foot-class
- The foot class could be used as a footer of the box.
- This class is optional.
Versions / Download
PixelGrid X – 960 pixels wide
- It’s dividable by 2, 3, 4, 8, 12, 16, 24, 32, 48, 64, 96
- Download
PixelGrid X – 1152 pixels wide
- It’s dividable by 2, 3, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128, 144, 192
- Download
PixelGrid X – Dynamic
- Dynamic width
- Available soon
2010-02-01 @ 6:02 f m
Each time I try to look at a demo or preview I get a 404.
2010-07-08 @ 9:23 f m
Hej!
Keep up the good work with grids! I’ve probably tried them all, but stuck with the easy and lightweight 1kb Grid. I don’t need to remember widths…