Results 1 to 2 of 2

Thread: Selective style switcher css/js

  1. #1
    Join Date
    Oct 2007
    Posts
    43
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Selective style switcher css/js

    I've been using Paul Sowden's http://www.alistapart.com/articles/alternate/method 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.
    Last edited by marynorn; 03-14-2008 at 10:06 AM. Reason: I had my coffee and my brain started working again.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by marynorn View Post
    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...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •