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
  • Pingback: Easy way to design tableless designing

  • http://stevenbullen.com/ StevenBullen

    Works a treat…

  • Pingback: Free Resources to Help You Become a CSS Expert Designer, | guidesigner.net

  • Pingback: 250+ Resources to Help You Become a CSS Expert | X Design Blog

  • http://www.aioon.de aioon

    Very nice Introduction, more of this! ^^

  • http://percept.be Percept

    Very very nice and usefull screencast! Thanks.

  • http://jjinux.blogspot.com Shannon -jj Behrens

    Thanks for the screencast. That saved me some time. It was well done too!

  • Pingback: Top CSS FRAMEWORK TUTORIAL AND ARTICLES « NETCANE

  • steve

    nice tut and thank you!

    You could shave off the first 9 minutes…

  • http://www.sharmashop.com yash

    thanx a lot :D gr8 tutorial

  • http://t.geostar.kz/ Atom

    Great!!!!

    Мы тут

  • Pingback: » Redskaber til Mock up arbejdet Dynamisk webdesign-E2009

  • Jason

    This was very helpful, thank you also I really like the way you do all your tutorial vids, very professional and you don’t beat around the bush and you get to the point fast I like that a lot, thanks

  • http://geniushackers.com Satish Gandham
  • http://www.advertisersgalleria.com HostAfric

    Amazing and easy to follow tutorial. Pretty easy to use, if you have an understanding of css.

  • Pingback: A Detailed Look at the 960 CSS Framework – Nettuts+ | My Web Development Bookmarks

  • http://www.YoungStream.net MrSuitUp

    I’ve been using jQuery for a long time, recently started using the PHP framework CodeIgniter, but didn’t even take the idea of CSS having a framework seriously! LOL, but until now. ;)

  • Anonymous

    It is not true anymore, that it has to be fixed to 960 width.
    Check Custom CSS generator on their page which directs to http://www.spry-soft.com/grids/

  • http://nelsondesigncollective.com/ Denis

    Great tutorial, thanks so much

  • http://stacyblackman.me Stacy

    I have have read a little bit about the 960 grid and was not sure it would help me. Your explanation has definitely changed my mind. Excellent tutorial, and thanks for showing me the light! :-)

  • http://www.manynetworks.com Martin Gonzalez

    very nice tut!! :D

  • Pingback: Become a CSS Expert, 250+ Resources | Amazing and Inspiring Design

  • Pingback: Framework CSS : 960 Grid System « FrameLinks

  • http://thinksmartsolutions.net Kino

    I can see the value of using a framework that is already in existence if it will met your needs 75% of the time. If not then their is something to be said for writing your own. Another thing is creating your own Javascript files. Using others is cool but it might be hard to understand what they were trying to do and hard to troubleshoot. Again I believe that in the Framework category, its good to have one but you don’t necessarily have to go main stream.

  • http://www.dins-inc.com DINS-INC.COM

    Great Intro — I understood it immediately ;-)
    But seriously — thanks that really helped a bunch.

  • Roland Aalto – Stockholm

    Great tut!

    I had some issues understanding the logic of it all before but now it´s all clear! Thank u Jeff

  • Jack Barrier (Andrea)

    Wow, this is COOL TUTs. Thank very much from Italy.

  • Jason

    is it possible to add an astore (amazon store front to this type of a theme? this is the issue I am running into check it out http://gameconsoleaccessories.org/playstation-3/ see how it cuts it off? there is plenty of room there with in the limits of the page and adjusting the code from amazon does not help. desperate here any ideas?

    Thanks

  • Pingback: Create a Clean One Page Portfolio in Photoshop + FREE PSD | ikreateit.com

  • http://www.kylebareis.com Kyle

    Amazing, first time I was on the site. Will be back to see all the interesting things it has to offer

  • http://denisefanov.ru Создание сайтов

    Thanks for tutorial! This is amazing!

  • Pingback: 250+资源帮助你成为一个CSS专家 - 唯创网站设计博客

  • http://-- H.

    Thanks so much for the video!

  • deirdre

    thanks alot! very helpful demo!

  • Pingback: 960 Grid System « A Path Less Taken

  • http://loganized.blogspot.com Alex Lee

    Thanks for the screen cast.
    I have benefited from this video. =)

  • Sean

    Thanks man!

    Loved it

  • http://www.heinsites.com/ Coleen

    Here I am watching this just over a year after you posted it – but it was VERY helpful and I thank you so much for putting it together.

    I’ve seen the 960 grid system before and wondered about maybe using it, but I hadn’t researched it enough to fully “get it”. For some reason tonight, (probably because I’m avoiding my JavaScript and Flash class assignment work I *should* be doing), I looked deeper at it and clicked the link to this tute. I’ll definitely be using it on my future projects now!

    Thanks again for the work you put into this!

  • Pingback: Technology Specialists Face Lift | GrandmasterB dot com

  • http://jlc-productions.net Juanlu001

    Great screencast! Thank you very much!

  • StupidCoolNerds

    You’re a better teacher than you thought. I didn’t know much about CSS, but I have learned plenty from you and this video. I looked everywhere, you did a great job now I can build my layouts from scratch and use your video as my reference. Thx

  • http://www.oryzone.com loige

    Really an “immediate” ( :P ) introduction to 960 framework ;)
    Great job!

  • Zubair Amin

    The video isn’t working!

  • Mr Smoothies

    Nice …faster with this !!! thanx !!

  • Alnilam

    Great video and great tut!!!!

    I’m working with this grid, but I have a little problem with form…
    My question is: the grid must be used in all tag html of the page, or I use the grid only to create the layout and the main content?
    I must use class=”grid_x” for all tag of form?
    I am in panic!
    I don’t want write in all tag , , etc class=”grid_x”…
    Could you help me?
    Thanks…

  • http://gobdg.com/blog Tison

    Jeff – did you know you can apply multiple css classes to one element?

    http://www.quirksmode.org/css/multipleclasses.html

    As always – great tutorial, thanks for your work here. It is appreciated,
    Ti

  • http://speakbrazinglish.blogspot.com brazinglish

    “I’m a big fan of getting things as simplified as they can possibly be.”
    Are you sure? We’re four minutes in, and there was guessing the website (!!), extracting a .zip file, deleting it… is that really necessary and relevant?
    I’ve learned a lot from your video tutorials, don’t get me wrong, I’ve learned a lot from this one as well.

    But they could easily be half as long.
    For the record, tutorial starts at 10:15.

  • http://www.memorybrindes.com Memory Brindes

    Usefull article, thank you!

  • Kevin

    I just don’t see where this can save me much more than about 5 minutes of time. I can create any layout in pretty much the same amount of time that I would use with this. Typing class=”grid_12″ is just as easy as for example typing .nav {float: left; width: 960px;} Plus you would need designers to create designs to these specs.

  • http://www.bsdlife.ru Juriy

    Thanks comrade ! Great job !