Clone this wiki locally
How do you scale CSS for millions of visitors or thousands of pages? Nicole first presented Object Oriented CSS at Web Directions North in Denver. Since then, the response has been overwhelming. OOCSS allows you to write fast, maintainable, standards-based front end code. It adds much needed predictability to CSS so that even beginners can participate in writing beautiful websites.
Two main principles
- Separate structure and skin
- Separate container and content
- Download all the files and set up a local directory
- Open template.html (this is the basic template you will modify to create all other pages).
- Set your left and right column widths by extending the column objects
- Use grids to break the page up further into smaller sections.
- Test your site functionality by adding content objects from the content.css file. These can also be found in library.html.
Ready for alpha testing
Please help me test the module objects. Put them through their paces and let me know if you manage to break them!
- Modules (New!)
OOCSS is built on top of reset and fonts from the YUI libraries. These libraries provide a common starting point across different navigators.
- Reset and Fonts from YUI are a starting point.
- Content objects
- DHTML blocks (tabs, carousel, toggle, etc)
I’ve had the good fortune to work/study/play with some amazing developers, engineers, managers, designers, and visionaries over the years. All of them contributed in different ways to shaping my ideas about how CSS should be built and maintained. Many many thanks to Arnaud Gueras, Florian Harmel, Sebastian Tiphaine, Yann Doussot, Thomas Vial, Adrien Thery, Sebastien Cardif, Thomas Vergnaud, Etienne Bernard, Yannick Bonnieux, Renaud Boyerand, Matt Sweeney, Nate Koechley, Leslie Jensen-Inman, Philip Tellis, Stoyan Stefanov, Robin Garner, Kevin Michel, Christophe Dubois, Orphelie Dudemaine, Medhi El Azmi, Christophe Charles, Eric Prudhommeaux, Mark Mason, Tenni Theurer, Steve Souders, Jennifer Le Hegaret, Praveen P N, Doug Crockford, Nicholas Zakas, Norm Francis, Christian Heilmann, Jenny Han Donnelly, Tom Croucher, Brian Rountree, Ryan Grove, Philippe Mihelic, Stephanie Troeth, Nick Fogler, Gonzalo Cordero and the other Jukus, and Dan Cederholm and his book bulletproof. I’m sure I’ve forgotten some… deepest apologies.
“If you can’t be a good example, then you’ll just have to serve as a horrible warning.”