There are various CSS grid frameworks, which try to make the life of front-end designers easier. There's YUI Grids, Blueprint, a bunch of other frameworks, and well, the 960 Grid System.
All those frameworks do their magic through non-semantic classes, which are added to your containers. While this sounds pretty bad, it actually isn't much of an issue in reality. Well, that is if you don't use those classes in your content. Fortunately there is very little reason to do so if you're using some kind of CMS – and if you aren't, you probably should.
Personally I happen to like the 960 one most. It's pretty minimalistic while offering enough flexibility. It's also shipped with a bunch of templates for Fireworks, Illustrator, Omni Giraffe, Photoshop, and Visio. Inkscape, however, was missing. It's time to fill that gap! :)
| Grid | Spacing | Major Every | Major Spacing |
|---|---|---|---|
| g05 | 0.5px | 2 | 1px |
| g1 (default) | 1.0px | 20 | 20px |
| g2 | 2.0px | 10 | 20px |
| g4 | 4.0px | 5 | 20px |
| g5 | 5.0px | 4 | 20px |
| g10 | 10.0px | 2 | 20px |
| g20 | 20.0px | 1 | 20px |
These predefined grids should take care of the most common use cases. As you've probably noticed the "g05" grid is different from the others. It's a special purpose grid, which allows you to align things with odd stroke widths (typically 1px) in a pixel perfect fashion. However, be sure to disable the guides beforehand otherwise it will be more fiddly than it needs to be.
To switch to a different grid, head over to the Document Properties dialog (top right icon). Go to "g1" and un-check the "enabled" check box. Then head over to the one you'd like to use and enable that one.

By default you'll start in "Layer 1". Below is a locked layer called "grid_12" or "grid_16" depending on the template you've chosen. This background layer shows you the location of the columns and gutters. Since that layer only contains some boring bars I rather show you an image of the layers dialog instead. ;)

If you drag a guide by accident you can just undo it. However, if you didn't notice it right away it might not be possible anymore. I addressed this issue by giving all guides an id, which tells you where it the guide belongs. Just double click the guide and set the value according to its ID.

Download the zip file and extract it to Inkscape's template directory (you can also just open it with Inkscape if you'd like to take a look first). If you're using Windows the file structure should look like this afterwards:
Inkscape └── share └── templates 960_grid_12_col.svg 960_grid_16_col.svg [...]
Under Linux the templates directory is located over at "/usr/share/inkscape/templates".
After you've successfully installed the 2 template files, they will be available in the "New" sub-menu:

Download: 960gs_inkscape_templates.zip (2kb)
Comments
You beat me to it :)
I just filled that same gap, but you did it so much better! Good job.
Anyway, have a look.
Happy hacking,
Gabe
re: You beat me to it :)
>[...] but you did it so much better!
Heh. Thanks. :)
I wondered if I should give those guides a name (well, a meaningful id), but I couldn't think of anything helpful therefore I omitted the id for all guides. You went with a name based on its position like guide-100 for the guide at 100px. I'd say that's the most useful naming scheme for these things, since you can only see those names if you double click a guide... and you only double click a guide if you want to set its position to a specific value... and you only want to set it to some specific value if you accidentally moved it a few steps earlier and hence you cannot go with undo.
I'm not sure if you had this stuff in mind when picking the ids, but now that I think about it it makes lots of sense. I'll add similar ids to my guides tonight.
Post new comment