DivitoDesign

Everything for the Web Professional

960 CSS Framework – Learn the Basics

Information about the Author:

Name:

URL: http://twitter.com/divitodesign

Description enjoy design, write articles, like typography, love football, keep chilling.

More on: CSS

63 Comments

  1. mak says:

    Great tutorial! I would be happy, if you continue with this tutorial and say something about the “prefix_…”. Thanks.

  2. [...] 960 CSS Framework – Learn the Basics » DivitoDesign. Tags: css [...]

  3. Jared says:

    There is a project called compass out there that is combining multiple popular css frameworks and lets you write css in SASS style. Its pretty neat as well.

  4. jitendra vyas says:

    I like Blueprint

  5. mienflying says:

    so, this is a great tutorial.

    you used the “alpha” style to cut down the left margin, and use omega style to take away the right margin. But after that the total width is 940, not 960 any more!

    so I think your first example which without “alpha” and “omega” is right, and the two class should used in nested columns.

  6. [...] Translate From: divitodesign [...]

  7. Tushar says:

    This is a great tutorial. Designing a website and making the layout could be very easily done now.
    Thanks a lot.

  8. Wonderfull tutorial! Thanks for it.

  9. fetid says:

    greate, i will use it on my webpage

  10. Hoppe says:

    I agree to @mienflying. He is pointing out the correct way to use the 960 grid. Just take a look at http://960.gs/demo.html and you will see.

  11. Date Women says:

    Just started a basic blog as I am a bit of a noob when it comes to html. However it is of real benifit when i stumble across a blog post such as this where i can pick up new tips that i will be able to use in the future.
    Excellent post most appreciated.

  12. [...] 960 CSS Framework – Learn the Basics » DivitoDesign (tags: css) [...]

  13. Max says:

    Very good post! I hope you continue, and possibly expand to other css frameworks.

    I’ve been playing around with BlueTrip by Capsize Designs and like it so far.

  14. [...] 960 CSS Framework – Learn the Basics » DivitoDesign CSS frameworks have been here for some time. About the usefulness of these frameworks has been discussed for numerous times. Some say CSS isn’t advanced enough, others say these frameworks saved them many hours of developing time. We will not repeat this discussion here. I have discovered CSS frameworks just a while back. After experimenting with the Malo CSS framework, the Blueprint framework and 960, I came to the conclusion I like the 960 CSS framework most. This tutorial will explain the basics of this framework so you can start developing with 960 pretty fast. (tags: 2008 web-developer web-developer/tools web-developer/css reference) [...]

  15. [...] 960 CSS Framework – Learn the Basics DivitoDesign (tags: css) [...]

  16. Great tutorial… can’t wait for more

  17. jitendra vyas says:

    is it comptible with IE6 ?

  18. jitendra vyas says:

    I’d say that reset.css isn’t technically necessary, because someone could just do:

    *{margin:0;padding:0;}

    I just included Meyer’s reset, because it’s a nice way to zero things out, without affecting form elements. But yeah, some sort of resetting should be done, to ensure that there’s no margin or padding from the body, etc

    Nathan Smith on August 1st, 2008</cite

  19. jitendra vyas says:

    For people who like both Blueprint and 960.gs can use this if want http://pixelhandler.com/design/mash-up-of-two-rockin-css-grids-960gs-blueprint

  20. Sumesh says:

    I’ve read about CSS frameworks before, but never got around to actually trying one. I see the advantages – lots of styles can be reused.

    Learning it will take time, but I hope the time will be worth :)

    That example page is quite nice – and to think you took only 5 minutes for it…

    That it takes 4 stylesheets – I prefer to minimize HTTP requests. I read about a PHP script to join files today (link, so it should help. Hope others find it useful too.

  21. [...] 960 CSS Framework – Learn the Basics – lot of talk about css frameworks lately so if you’re looking to get a handle on the basics [...]

  22. [...] couple weeks back we have learned about the basics of the 960.gs CSS framework. Today we will talk about 2 problems with the 960 framework you might have struggled with. This [...]

  23. [...] 960 CSS Framework – Learn the Basics » DivitoDesign Learn the Basics of the 960 CSS Framework! (tags: design Tutorials web-design frameworks howto web webdesign Resources webdev tutorial CSS webdevelopment 2008 layout article xhtml Web_Design html framework webmaster cssframework grids grid learn basics 960 divitodesign css-frameworks) [...]

  24. Ryan says:

    Great article. I’ve been using 960 for a while and greatly prefer it over Blueprint. Question though, do you recommend a convenient way to beef up the outside margins? I’d like to have more than 10px on the left/right of the main content block. I can do it manually, but wonder if anyone’s found a quicker way to get it done.

  25. [...] 960 CSS Framework – Learn the Basics » DivitoDesign [...]

  26. [...] recommend reading Stefan Vervoort’s post on divitodesign to get started, there are also some good examples provided in the downloadable [...]

  27. jitendra vyas says:

    960 vs Blueprint

    * Blueprint is simpler: I like that blueprint’s containers never change. I don’t need either a grid of 12, or a grid of 16. 24 works fine for me. There’s also only a “last” class, as opposed to 960′s “alpha”, and “omega”‘s. What’s the difference between grid-6, and container-6? Can grid-14 fit two container-7? I’m too lazy to look up the answer since I’ve never once run into a problem where blueprints system wasn’t as flexible as I needed. Especially since the designer and I work together, and we tend hold off on the design until we have all the content.
    * Blueprint gives a damn about typography: 960′s creator says says “I haven’t gone out of my way to establish a vertical rhythm for text, as is described in the Baseline article on ALA. It’s not that I don’t see the value in it, I do. I think it’s an awesome idea, and a noble pursuit. However, it is fragile. All it takes is for a content editor to upload an arbitrarily sized, 173 pixel tall image, and all the subsequent elements are off-beat.” I fail to see what I gain from losing this feature in blueprint. Especially given I use imagecache, and know exactly what to do when an image is 173 tall: fix it.
    * Blueprint has a community of active contributors, and the frameworks is evolving quite noticeably: 960 appears to be the work of one guy.

  28. Good tutorial. I usually just custom build the CSS layouts I create. I guess a framework would be nice to have, though, if you’re unfamiliar with coding.

  29. [...] couple weeks back we have learned about the basics of the 960.gs CSS framework. Today we will talk about 2 problems with the 960 framework you might have struggled with. This [...]

  30. Sean says:

    Blueprint Framework may be a bit cleaner, but I like how 960 sets margins correctly, whereas the vertical and horizontal margins are equal, Blueprint’s verticals are 20px while their horizontal spacing is 10px. It’s quite aggrevating, having developed with both frameworks, I find 960 to be easier to use and to develop nicer looking templates. http://woothemes.com … case and point.

  31. [...] of the success of the latest “Learn the Basics” article about the 960 CSS Framework, I feel there is a need for detailed tutorials on how to start with CSS Frameworks. It’s not [...]

  32. Mark says:

    Great tutorial.

    I’ll definitely be exploring CSS framworks sometime soon.

  33. Patrick says:

    very succinct review.
    i’m not really crazy about the markup because it isn’t semantic in the slightest. i guess i can tweak it, but then i won’t be able to easily update it, no? oh, well.
    also, according to your own example you tweaked the framework. you adjusted some widths, correct? and it didn’t bust up the design, so we should be able to tweak it as well?
    this looks promising. i’ve never used any framework – even my resets are customized to the project. i can’t stand unnecessary and bloated code. but if these frameworks can be tweaked then i might be i, too!

Please Respond and Give your Opinion

We use Gravatar to handle our avatars. Get one there!