Results 1 to 3 of 3

Thread: Styleswitcher.css

  1. #1
    Join Date
    Jan 2008
    Posts
    51
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default Styleswitcher.css

    Hello,

    I'm using the CSS switching script that I found at A List Apart.

    It works great for it's purposes. But what I'd like to do is to only show a link when it's useful.

    I have two alternate stylesheets that I'm switching from (large.css and normal.css). When large.css is set, I'd like to show a link to normal and when normal.css is set, I'd like to show a link to large.

    Is there any way I can add this functionality to the style switcher script.

    Or does anyone know of a css switching script that has this kind of toggling functionality.

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

    Default

    Maybe I'm missing the point, but why not just add statements in the CSS.

    Set unique ids around your links.

    For example,

    Code:
    <a href="large.css" id="large">LINK</a>
    <a href="normal.css" id="normal">LINK</a>
    Then in your css, set the opposite one to display:none

    Would that work?

  3. The Following User Says Thank You to Medyman For This Useful Post:

    ReadyToLearn (03-28-2008)

  4. #3
    Join Date
    Jan 2008
    Posts
    51
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    As usual, absolutely brilliant Medyman!

    Thank you so much.

    It's so simple. I can't believe I didn't think of it myself

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
  •