SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Sep 2004
    Location
    Camas, WA (USA)
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    change CSS property via link

    Is it possible to rewrite a CSS property via a link, or is this more of a javascript or PHP thing?

    ex.
    /* initial state: */
    h1 {color: red}
    /* desired state: */
    h1 {color: green}

    HTML:
    <a href="#">change h1 elements to green</a>

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    I think you will need some javascript to switch out stylesheets

    http://www.alistapart.com/articles/alternate/

    Hope this helps

    Later
    Johnny


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
  •