treehouse : what would you like to learn today?
Web Design Web Development iOS Development

How to make a Fluid to Fixed Button?

  • I found this website...http://evil.che.lu/ and i saw that you can change how wide your theme could go. How do they set it up with buttons.
  • You can do it with a little javascript. Just let it load some other styles or change the classes of the parts you want to change...
  • take a look at User-Switchable Stylesheets in the Downloads area of this site,
    an example of this technique is shown there.

    Al
  • I'd like to tip you of Juicy Studio's styleswitcher: http://juicystudio.com/index.php - click on the Switch to High Contrast-link in the menu. This also works without any scripts, as it's using PHP with cookies (I presume) to check for user-style-setting.

    You could use something like that where the user could click to get different text-sizes (through different stylesheets). A List Apart also has an old article about creating your own style switcher.