Results 1 to 6 of 6

Thread: changing text size

  1. #1
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default changing text size

    I have written my css in px.

    I want to add an option for my visitors to increase the text size - the site is mainly for senior citizens. What's the best way? Is there a javascript to use? Will I completely mess up my formatting?

    I have a pretty large site - over 1000 pages and am a little nervous about messing up the formatting...

    Thanks!
    jw11

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Never use pixels. If you use percentages(or em) the user can use built in browser functions to increase the size. Yes this may completely destroy your layout, but your layout should be rebuilt to accommodate it.

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Hi JW11

    I think you can use the concept used here to solve your situation

    http://css.somepeople.net/dynamic

    http://www.dynamicdrive.com/dynamici...etswitcher.htm
    Last edited by codeexploiter; 08-31-2006 at 10:59 AM.

  4. #4
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Many thanks.
    I'll give your suggestions a try, maybe I can leave the current css page the same and create new ones for the larger text.

    I have had trouble using em's and %'s. I found as the browser resized, they moved but the wrapper I used did not which messed up the overall look of the pages.

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Tell them to hold Ctrl and scroll with the scrolling thingy on their mouse
    - Mike

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mburt
    Tell them to hold Ctrl and scroll with the scrolling thingy on their mouse
    That's all well and good, but if the OP has used pixels to define font sizes, that won't work in MSIE. The pt and px units cause IE to fix the font size, preventing the built-in text sizing controls from working (this doesn't affect other browsers, but technically the behaviour in IE is correct).

    If the site is aimed at older people, many of whom are almost guaranteed to have poorer eyesight, then it is essential that usability features like text resizing works.


    By the way, Mike, you're referring to the mouse wheel.

    Mike

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
  •