SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Location
    Chester UK
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question CSS Change Text Size

    lo people,

    I am after a tutorial that helps me have several style sheets, so when a user clicks on a change text size link the text size goes up or down, dependent on what has been pressed.

    An example can be seen at http://www.dreamweavermxsupport.com he has a tutorialon there but I can't get it working.

    Any ideas?

    Jon
    you tryin' say... two blokes like us wear bras?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,351
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Try these:
    http://www.alistapart.com/articles/alternate/
    http://alistapart.com/articles/phpswitch/

    I've had them both working loads of times.

    Ther first is a javascript one and works in major browers, assuming javascript is enabled.

    The second is a server side PHP switcher which should work on all browsers that support css etc, but is a lot slower (obviously) but more robust.

    Paul

  3. #3
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at http://www.cie.uce.ac.uk/essential/accessibility.html and the stylesheets http://www.cie.uce.ac.uk/essential/style/main.css and http://www.cie.uce.ac.uk/essential/style/ky.css (that the black on yellow one). The size switching is at http://www.cie.uce.ac.uk/essential/s...styleswitch.js which came from alistapart and Eric Meyer and I've put in further mods.

    You can obviously use the styleshweet switcher to change text size using stylesheets rather than letting the user have free choice.

    Does this help?
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.


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
  •