Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Syntax to apply the same styles to each id?


lucy24 - 8:04 am on Feb 26, 2012 (gmt 0)


There are also comma-delimited groups.

div.toplevel, p.super, table.example {size: something; color: something; background-color: something-else; font-family: something;}

... et cetera. If assorted unrelated elements should always have certain things in common, style them together.

Don't forget the comma!

div.toplevel, p.super
means "div class = 'toplevel' or p class = 'super'"

div.toplevel p.super
means "p class = 'super' when it occurs inside of div class = 'toplevel'"


Thread source:: http://www.webmasterworld.com/css/4421854.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com