advice needed for refactoring the css style sheets

hussayn <[email protected]> Thu, 15 Jan 2009 03:17:47 -0800 (PST)
Newsgroups gmane.comp.java.scarab.devel
Message-ID <[email protected]>
hi;

what is a good rule for using classes vs. ids in css-styles ?

.my_class {
...
}

#my_id {
...
}

I would use classes for "reusable" elements and ids for "unique" elements,
hence

for page sections:

#breadcrumb
#header
#footer
#canvas


for reusable elements:

.button
.list
.calendar

is that feasible ? or is it better to use classes only ?

regards,
hussayn
-- 
View this message in context: http://www.nabble.com/refactor-the-css-style-sheets-tp21442752p21475678.html
Sent from the Scarab - Dev mailing list archive at Nabble.com.

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=455&dsMessageId=1026308

To unsubscribe from this discussion, e-mail: [[email protected]].