Successfully reported this slideshow.
Your SlideShare is downloading. ×

OOCSS

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
How not-to-get-noticed4368
How not-to-get-noticed4368
Loading in …3
×

Check these out next

1 of 56 Ad
Advertisement

More Related Content

Similar to OOCSS (20)

Advertisement

Recently uploaded (20)

OOCSS

  1. 1. HTML AND CSS Let’s all make fast sites Presentation about OOCSS inspired by Nicole Sullivan. Flickr photo © Legoagogo
  2. 2. O Hai! I’m Yoni Yoni De Beule, http://www.yonidebeule.be, @yoniweb
  3. 3. I work at Netlash among others. http://www.netlash.com http://www.minify.be http://www.vlmbuzz.be http://www.wrappp.it
  4. 4. I love building websites that are beautiful, accessible, easy to use and fast. I love building websites that are beautiful, accessible, easy to use and fast.
  5. 5. Beautiful Beautiful sites
  6. 6. Accessible Accessible sites (http://www.slideshare.net/YoniWeb/anysurfer)
  7. 7. Easy to use Easy to use sites (love your Information Architectsʼs)
  8. 8. Fast Fast sites
  9. 9. I also love using pictures in my presentations... I also love using pictures in my presentations...
  10. 10. It’s a designer thing Itʼs a designer thing
  11. 11. I’m here today to make you happy. Iʼm here today to make you happy.
  12. 12. I’ll be making users happy Iʼll be making users happy
  13. 13. I’ll be making developers happy Iʼll be making developers happy
  14. 14. I’ll be making clients happy Iʼll be making clients happy
  15. 15. I’ll even be making myself happy Iʼll even be making myself happy
  16. 16. I’m here to make you happy by telling you about Object Oriented CSS. Iʼm here to make you happy by telling you about Object Oriented CSS.
  17. 17. Nicole Sullivan Thanks to Nicole Sullivan (Yahoo!) I found out about OOCSS © Marien van Os
  18. 18. She’s awesome. Sheʼs awesome.
  19. 19. Pure WIN. Pure WIN.
  20. 20. WHAT? Object Oriented CSS What is OOCSS?
  21. 21. OOCSS is all about building big websites that are fast. OOCSS is all about building big websites that are fast. Thereʼs a framework, but Iʼm all for the “concept”, the “idea”, the brilliance.
  22. 22. Two major principles Two major principles
  23. 23. Two major principles 1. Separate structure and skin Separate structure and skin
  24. 24. Two major principles 1. Separate structure and skin 2. Separate container and content Separate container and content
  25. 25. Two major principles 1. Separate structure and skin 2. Separate container and content
  26. 26. Doesn’t that kind of sounds like ... Doesnʼt that kind of sounds like ...
  27. 27. Fork?
  28. 28. Fork
  29. 29. Yeah, that’s what I thought. Yeah, thatʼs what I thought.
  30. 30. WHY USE IT? Object Oriented CSS Why use OOCSS?
  31. 31. Lego’s. Legoʼs.
  32. 32. That’s right. Thatʼs right.
  33. 33. Lego’s. Legoʼs are modular blocks of html, css, images and javascript that can be used all across a site.
  34. 34. Lego’s 1. Separate structure and skin 2. Separate container and content They follow the OOCSS principles.
  35. 35. Fast site with less CSS. Fast site with less CSS.
  36. 36. Users happy Users happy
  37. 37. Developers can use these lego’s virtually anywhere without the help of a designer. Developers can use these legoʼs virtually anywhere without the help of a designer.
  38. 38. Developers happy Developers happy
  39. 39. Less design time needed and faster new features. Less design time needed and faster new features.
  40. 40. Clients happy Clients happy
  41. 41. Consistent design = clean code = fast site And last but not least consistent design = clean code = fast site.
  42. 42. Yoni happy Yoni and all the other designers Happy
  43. 43. Designers happy Happy times.
  44. 44. HOW? Object Oriented CSS How do you use OOCSS?
  45. 45. Lego’s? How do you use these Legoʼs?
  46. 46. <div class="mod"> <div class="inner"> <div class="hd"> <h3>Title</h3> </div> <div class="bd content"> <p>Content</p> </div> </div> </div> Notice the content class devs! Use it!
  47. 47. <div id="blogRecentArticlesListWidget" class="mod article"> <div class="inner"> <div class="hd"> <h3>Recent articles</h3> </div> <div class="bd content"> <ul> <li><a href= "#" >Lorem ipsum</a></li> </ul> </div> <div class="ft"> <p><a href= "#" >Blog archive</a></p> </div> </div> </div> Example from the new Fork CMS.
  48. 48. Use it and make it your own but make it understandable. Use it, try it, make it your own. Donʼt let my code or the framework hold you back!
  49. 49. PRO TIPS Object Oriented CSS Iʼve been using it for a while and want to hand out some very very specific “pro tips”.
  50. 50. Names, don’t loose yourself in them. Stop using “general” names like “extraColumn” and “noticeBox”... Tell it like it is!
  51. 51. Respect the design, don’t worship it. Respect the design, donʼt worship it.
  52. 52. Sprites rule, but are a bitch to maintain so beware! Sprites help, but are a bitch to maintain. I might do a presentation about this later (like why the new Ruby feature is a bad idea). {OFF TOPIC}
  53. 53. Progressive enhancement (PNG8). Fireworks! *pew* *pew* {OFF TOPIC}
  54. 54. Questions? Questions?
  55. 55. http://www.yonidebeule.be Yoni De Beule, http://www.yonidebeule.be, @yoniweb

×