7 Replies Latest reply on Sep 27, 2010 11:05 AM by rgurganus

    Dynamically change font size on a website

    tomtomtom Level 1

      Hello

       

      I'm building a website for people which have problems with their vision. I thought I would display a function which lets the user increase (or decrease) the standard font size (which I initially will set to p.e. 1.2em). I will use a CSS file to set all other styling properties. Is there a nice example on how to realize this. I think I need to save the users choice in the session or in a cookie. But I cannot imagine yet how to access and change my CSS file or whatever the solution will be. I imagine that I will display a couple of "A"s in different sizes and the user may click on the "A" which has the size the user likes.

       

      Thank you very much for your help.