Log in

View Full Version : Selective style switcher css/js



marynorn
03-14-2008, 09:53 AM
I've been using Paul Sowden's http://www.alistapart.com/articles/alternate/method (http://www.alistapart.com/articles/alternate/) for alternate styles, and it's great. Now though, I have seven different styles, which require seven different alternates. I'd much rather be able to have one alternate which changed, say font size or background colour, and left everything else the same as the various default styles.

I know that it's possible to set up a main style and have secondaries to change selected values, but I haven't been able to find any tutorials. Any help would be gratefully received.

*cough*

Okay, this is embarassing, I just switched the value that's different in each style to 'inherit' in the alternate stylesheet. One line of code, and my problem is gone.

Medyman
03-14-2008, 07:42 PM
Okay, this is embarassing, I just switched the value that's different in each style to 'inherit' in the alternate stylesheet. One line of code, and my problem is gone.

Don't you just love when it's that simple...