[kwlug-disc] CSS: varying colours based on inheritance

Chris Frey cdfrey at foursquare.net
Wed Jul 6 18:24:14 EDT 2011

On Wed, Jul 06, 2011 at 03:07:44PM -0700, Paul Nijjar wrote:
> Say I use CSS to set the top level colour. Is there a way for me to 
> programmatically define the second level's colour based upon the parent level? 
> So items at level 2 are 10% more green, and items at level 3 are 10% more green 
> than those at level 2? Or am I stuck with setting colours at each individual 
> level?

Based on John's link, one page over, this looks interesting:


Especially the section on inheritance and the inherit keyword.

I haven't played with it though.

- Chris

More information about the kwlug-disc mailing list