SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Controlling font size with Javascript/CSS

    Hi everyone,

    I am working on a project and want to give the users the option to scale their font sized up and down, using a javascript or javascript/CSS combo. Basially, clicking the text icon once will enlarge it (to whatever I determine) and clicking that icon again will revert it to the normal size. They will not be able to incrementally get larger with each click... just one size.

    Can anyone lead me in the right direction on this, or share a piece of code that can accomplish this?

    To see what I'm talking about here, take a look at this page: http://flamingo.mindscapecreative.co...ies/index.aspx

    The "enlarge text" icon under the page title will need to control the text.

    Thanks for any help,

    Mark

  2. #2
    SitePoint Enthusiast Gridlight's Avatar
    Join Date
    Apr 2005
    Location
    Oxford, UK
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This article may be of some use:

    http://www.alistapart.com/articles/relafont/
    Cheers,
    Gridlight

    BrowserCam for 30?! I'm in, are you?


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
  •