TekNek Web Services Twitter Page TekNek Web Services Facebook Page TekNek Web Services RSS Feed TekNek Web Services LinkedIn Page

Oct 10 2010 CSS Grid 978px Improved

The 978px grid with added push/pull classes as well as prefix/suffix classes.  After reading an article by webdesignerwall.com, I decided to give their “simpler 978px grid” system a try. I like how it is slightly larger than the 960 grid system, has no margins on the far left and right sides, and also has 30px gutters. I quickly realized, however, that the css had no push, pull, prefix, or suffix classes.  So I decided to add them myself.

Push / Pull CSS classes

Quick summary, push and pull css classes are used to rearrange the order at which divs show up in the browser. This is beneficial for search engine spiders/robots, which read and weigh content based on the order at which your content appears in your source code. Read More about it here if ya’ like.

Prefix / Suffix CSS classes

Prefix and Suffix css classes are used to add extra columns of spacing in between the divs of a grid layout. You can see an example of this in the footer of my website.  Screen cap of how the spacing of one of the divs looks in firebug using suffix_1 class here:
css suffix in footer example 300x121 CSS Grid 978px Improved
Although this site currently uses the 960 grid system, you get the point.

Without further ado, here is the DEMO, with corresponding css. The rows at the very bottom giving examples of how to use the push / pull css as well as the prefix and suffix css.

Special thanks to you guys at http://www.webdesignerwall.com/ for creating the original 978px grid system!

Reader Comments

  1. Comment by Bryan Chalker — December 16, 2010 @ 9:45 am

    Fully agree. nice tweaks on the css. Will be implementing the 978 grid for my new sites and will keep the revisions in mind.

  2. Comment by Crssp — March 3, 2011 @ 2:07 pm

    Awesome tweaks, the original post over on WebDesignerWall could use some more refinement. It leaves a few questions as to what’s good practice, and how-to for actual use.
    Just came to my attn. there were no prefix & suffix classes, and bam here I am.
    Nice job… any more thoughts, necessary additions.
    I’m a little unclear on the clearfix classes styles at the end of the original code, when to use etc.

    thanks teknek

  3. Comment by admin — March 10, 2011 @ 11:10 am

    I’ll be adding a grid 978px wordpress theme at some point. It appears as though there is a demand for this based on my google analytics…

RSS feed for comments on this post. TrackBack URL

Leave a comment

Anti-Spam Quiz:

  • © 2010 TekNek Web Services • 224 E. Garden St., Pensacola, FL 32502 • 850-390-1846