13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

144<br />

Building the CSS<br />

I’m at the stage in the development of the grid now where I need to move stuff around. I always find it easier to develop a<br />

fixed-pixel-based grid first, to make sure I have all my ratios correct and the composition is working. A nice little trick I use for<br />

this was first described by Khoi Vinh on his superb site, www.subtraction.com. Remember the grid drawing I did in Photoshop<br />

(Figure 6-8)? I export that grid and add it as a background to the container div throughout the development of the grid.<br />

#container {<br />

background: url(images/grid_background.gif);<br />

}<br />

I now have a visual representation of the grid (see Figure 6-13) to start aligning elements to it. Grids can be complex beasts, so<br />

having a visual reference that can be added and removed from the template so easily is really good news for us designers.<br />

Figure 6-13. Using the grid as a background image allows me to align all elements to it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!