Murray
unread,Aug 12, 2009, 10:08:26 PM8/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Object Oriented CSS
OOCSS takes some practice and discipline but, as I'm using it for my
current project, I'll never approach another site without it.
I create 3-4 pages to begin with. One has all of my layout, one has
all of my containers, one has all of my content styles, one has all of
my form styles. Once I have created all of the elements on each of
these pages, piecing a template together is like building a lego
model.
When I am done I am confident that anybody, with simple understanding
of html/css, will be able to create new templates without the hassle
of unexpected content layout bugs.
That's the whole point.
Yesterday, I had a breakthrough with it, I finally figured out
(mentally) how to separate layout, content, containers, skins, and
forms.
The site I'm working on is a government site so I can't share any of
the code just yet, but once it is done I will post a link as an
example of real world OOCSS with partial vertical rhythm
(unfortunately you can't win every battle).