A Detailed Look at the 960 CSS Framework
videos

A Detailed Look at the 960 CSS Framework

CSS frameworks are bloated. CSS frameworks are for people who don’t know how to code. CSS is too simple to implement a framework.

If you’ve ever read a tutorial on a CSS framework, I can guarantee that many comments mimic the previous statements. My guess is that the majority of these comments are stemmed from slight ignorance. Once you take the opportunity to spend some time with 960, you’ll be amazed at how much time can potentially be saved when developing your web applications. At the very least, take ten minutes to review the framework. You can always press the delete key…though I doubt you will!

960 Framework

Pros

  • Rapidly speeds up development time.
  • Clean grid structure.
  • Not many browser inconsistencies. The ones you find can be fixed easily.
  • It’s not “bloated” as many people suggest. We’re talking 3-4kb here, folks! You would use many of these stylings anyways.
  • Build complex layouts quickly.

Cons

  • It’s named “960″ for a reason. If you’re hoping to use a different width for you website, you might be better off choosing a different framework.
  • As with any “framework”, you lose a bit of flexibility.
  • You didn’t create it. There’s something to be said for code being 100% our own.

Usage

Let’s imagine that we want to work with the “12 column” structure to create the extremely simple layout seen below. First, we must create a wrapper div that has a class of “container_12″. Notice the 12.

layout
<div id="container" class="container_12">
...content goes here
</div>

Specifying an id here isn’t required by any means. However, I find that it helps me to remember exactly what the div is. One of the gripes against 960 is that the classes do nothing to define what the element is. Simply including an id fixes that issue.

Grids

Now we want to create a simple header and two column structure. When first getting started, it’s helpful to examine the demo to choose how wide a grid you should use.

960 Framework

I’m going to choose a header width of “940px” (+ 20px margins = 960), a sidebar width of “220px”, and a main content width of “700px”.

You must assign a class to each div. Naming conventions require that that the class name begins with “grid_” and ends with the number of columns needed. In our case, we’ll use “grid_12′, “grid_3″ and “grid_9″, respectively.

<div id="container" class="container_12">
  <div id="header" class="grid_12">
    content goes here
  </div>

  <div id="sidebar" class="grid_3">
    content goes here
  </div>

  <div id="mainContent" class="grid_9">
    content goes here
  </div>
</div>

The only additional styling that I’ve added is background colors and a minimum width for each div to simulate an actual website full of text. I won’t go over that here; mostly because they should be removed. They’re only used here to demonstrate the structure.

Without worrying about margins, floats, or IE hacks, we’re able to create a layout extremely fast. The true power of 960 is demonstrated when building complex newspaper-like layouts. For more detail, be sure to watch the screencast above.

960 Framework

You Also Might Like

  • Prototyping With The Grid 960 CSS Framework`

    Prototyping With The Grid 960 CSS Framework

    Grid 960 is a CSS Framework that enables developers to rapidly prototype designs. They are excellent tools for creating mock ups. Why? Because they do all the heavy lifting allowing you to get faster results.

    Visit Article

  • Build a Newspaper Theme With WP_Query and the 960 CSS Framework

    Build a Newspaper Theme With WP_Query and the 960 CSS Framework

    WP_Query is a powerful tool to control what comes out of your loop. Today I’m going to teach you all how to use it to make a 3 columned newspaper theme that has all your main blog posts in the main column, and off to the side a set of posts with a certain category. We’ll be using the 960 CSS framework for the basic layout and reset of our theme, it will chop a lot of work off what’s needed!

    Visit Article

  • Which CSS Grid Framework Should You Use for Web Design?

    Which CSS Grid Framework Should You Use for Web Design?

    Ever wondered how all those slick “magazine” themes for WordPress and other platforms were created? Many, if not all, were designed using a CSS Grid Framework – at least in essence if not in actual fact. That is, you can use an existing CSS framework or build your own from scratch. While it’s possible to design complex web page layouts without a framework, it’s arguably an act in masochism. In this article you’ll get an overview of the current batch of Frameworks and which you should choose to use.

    Visit Article

  • Subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.


Tags: Videos
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://twitter.com/sergi_bosch sergi

    concise. informative. i’d already spent about 2 hours trying out the framework before watching; otherwise this might have been a bit too much too quick. the alpha/omega classes caught my attention – i like how you made them into pop-out captions in the video.

  • http://www.designimage.eu/blog Paul Herring

    I’ve just started using 960.gs and needed the pointer you gave on alpha and omega classes for nested divs – Thank you! Great screencast, I’ll definitely be checking out your site again!

    Paul

  • Paul Irwin

    thanks for a great screen cast!

  • alby

    Thanks a lot ,great tut , really good , pro

  • bongani

    Can somebody help me to use grid system for ma website layout.i hv bn surfin the net without any luck.I need simple step by step procedure.Ma inbox thnx u in advance.Regards Bongani

  • http://cms-boutique.com Alex

    Question! How do you compress your css after you are done? Thanks.

  • Pingback: Top 3 Things I learnt This Week | pragmatic startup

  • http://www.kita.com Marjan

    Thank you very much, that way a great introduction to 960.gs :)

  • Pingback: CSS Framework: 960 Grid System « Zend in 60 Days

  • http://www.webarts.pl Jakub Mroz

    Hi,
    I must say that I have never used or considered using any CSS frameworks.
    After this screen cast I will start a project with this and see how it works in long-term projects which usually need to be rebuilded after some time.

    Thank for a great job.

    Wish all the best to all front&back end developers ;)

  • Pingback: 11 Tools to Instantly Code Faster | FlexLib

  • Pingback: Web Development articles, tutorials, help » Blog Archive » 11 Tools to Instantly Code Faster

  • Pingback: 11 Tools to Instantly Code Faster | WordPress Themes, Plugins, Hacks, Guides

  • Pingback: 11 Tools to Immediately Code More quickly « Fast Ninja Blog by Freelanceful – Web Design | Coding | Freelancing

  • Pingback: 11 Tools to Instantly Code Faster | Shadowtek | Hosting and Design Solutions

  • Pingback: IOS world of development » 11 Tools to Instantly Code Faster

  • Pingback: 11 Tools to Instantly Code Faster | Web Design Northamptonshire

  • Pingback: My Stream » 11 Tools to Instantly Code Faster

  • Pingback: 960 grid的一些资料 - Teddy's

  • Pingback: 11 Tools to Instantly Code Faster – blog

  • Pingback: 11 Tools to Instantly Code Faster

  • Pingback: 250+ Resources to Help You Become a CSS Expert « RPL Class

  • http://www.couchsquash.com Jeremiah

    Hey man,

    Thanks a bunch for the screen cast. I’m just learning the ropes of the 960 framework, and your video helped me wrap my mind around a few questions I had. I will be adapting it for a wordpress theme, so I have a little more to do, but I get the general idea now.

    Thanks again

  • Pingback: 960 Grid CSS Framework – Tutorials und Tools für den Start

  • http://www.moisesgomez.com.mx Moises Gomez

    Nice Tut, thnks a lot!

  • colbyjax

    Awesome screencast! Thanks for taking the time to do this. I had browsed over the 960 stuff before but had never paid much attention to it. It looks like a nice time-saving technique not to mention very clean.

  • http://www.democratandchronicle.com/apps/pbcs.dll/section?category=PluckPersona&U=6448c0b4e57247adaa00961c03e2b90c&plckPersonaPage=BlogViewPost&plckUserId=6448c0b4e57247adaa00961c03e2b90c& Young Marris

    I do agree with all the concepts you have offered to your post. They’re really convincing and can certainly work. Nonetheless, the posts are very short for novices. May just you please lengthen them a bit from next time? Thank you for the post.

  • http://catladydesignsonline.com Cat

    This has been super informative! I had always wondered about this…thanks for the video! (=^_^=)

  • http://www.rodneisolucoes.eti.br Rodnei A. Ribeiro

    Hello! I’m beginner in web hehehe, is a wonderful tutorial. Thanks!

  • sunil

    Hi, Ur video tutorial was awsome, I trying Joomla and firnd first ref. of this framework but want to ignore it but after watching ur video it looks interesting. !!!
    U have done a very nice demonstation ..

    Thanks !!!!

  • Pete

    That’s really great. I can certainly use that. I have a few custom framework templates of my own, but I think I like that one even more because all of the bases are covered with the grid classes. Just a thought for anyone here who is currently dabbling in CSS3…. the “multi- column layout module” used in conjunction with this can really speed things up. Even just looking at the 960 framework and calculating your width and applying the measurements to the multi-column properties in CSS3 would be snappy. Just a thought (don’t forget the vendor prefixes though).

  • Arif

    What is .push, .pull, .prefix, .suffix in CSS 960 Framework(960.cs file). I am not understand where i use this class. Please anyone help me.

  • Pingback: Netineti Design » 960 Grid System

  • Donavan Jones

    Wow! Thank you so much for doing this tutorial. I have been coding CSS for a year now and 960.gs is great. It has taught me so many things I should be doing when creating my own layout stylesheets. Again thank you for making this.

  • http://www.eBizROI.com/ Rick Noel

    Nice post Jeffrey. Closing in on the 300 comment milestone – need one more after mine unless someone hits the submit key while I am typing this comment. Internet marketing service delivery as it relates to website development is a whole lot easier with the 960 CSS framework. I appreciated the detailed screencast with expert commentary. Good arguments against the 960 CSS framework being “bloated” Thanks providing the 960 CSS overview screencast to assist with making Internet marketing easier and stimulating such an engaging dialogue!

  • http://www.andrewpougher.co.uk Andrew Pougher

    Very clear and watchable tutorial. This should help with speed, productivity and rapid prototyping. Just sitting back and thinking about 960s CSS, and how this will integrate with HTML5 / Css3 methods. If anyone has any examples of such integration, please advise. Thanks

  • Pingback: CSS Frameworks: Home Run or Strike Out? « Twist the Fact

  • Pingback: Badge: Frameworks « Schluckebier Web Design

  • Pingback: 11 Tools to Instantly Code Faster « My Blog

  • Carlos U

    Your screancast its great thanks for your time and effort !!

    what css framework do you recommend for a Fluid layout ?

  • http://www.richard-dickinson.com Richard

    Thanks for your video tutorial on using 960 gs (grid).
    I’m a bit late to this tutorial! (published nearly 31/2 years ago now!).
    I’ve never used grids in my web designs before & I need to play with this to check it over as you suggest.
    There seem to be many other grid systems available (978/GoldenGrid etc but 960 gs seems to be long established & well respected.
    For responsive design I might try >>Fluid 960 Grid System, created by Stephen Bau, based on the 960 Grid System by Nathan Smith. Released under the GPL / MIT Licenses.<<http://www.designinfluences.com/fluid960gs/)
    Best wishes :-)

  • http://yiyingloveart.blogspot.tw/ yiyingwu

    very nice video :)

  • http://www.greentechcs.com Ariful H Bhuiyan

    Awesome tutorial on 960grid. But some where you said it can only used for 960 grid, but what about the “Custom CSS Generator” button in 960.gs site? Isn’t it part of it?

    Well, Thank you soo much.. I got the basic idea and I can now play with it. Cheers :)

  • Pingback: 30 HTML Best Practices for Beginners | Teach YourSelf

  • Pingback: The Pros And Cons Of CSS Frameworks - Vanseo Design

  • Pingback: The ABCs of Web Development « meisterxu

  • http://www.egydes.com Husien adel

    thanks a lot Jeff ;)

  • Pingback: 960 Grid & HTML/CSS resources | Graphic Design Diploma

  • http://www.facebook.com/Javidhh Javid H. Hosseini

    thank you alot, what is the firefox addon you use to edit css ?

  • http://www.facebook.com/Javidhh Javid H. Hosseini

    thanks a lot what is the firefox addon you use to edit css?