using a stylesheet switcher Using relative font sizing in your stylesheet
This is the technique I tend to use the most. Using the css small, large, x-large 'keywords' or the ems, ex, and % allows the visitor browser settings to 'cahnge' the font size on your site.
How to do it:
This is how I personally do it - I am sure there are some better ways for you own circumstances.
First I add this to my stylesheet:
body{
font: 75% Arial, Helvetica, sans-serif;
line-height: 1.5em;
}
This would make the font size to appear as if it was approx 11/12px in the visitor's browser if his font size settings are set to normal. I usually also increase the line-height to make the text 'breathe' and easier to read. DO NOT use px for the line-height otherwise your lines will overlap if the text size is increased
I then define each element's size in percentages as well:
h1 { font-size: 150%; }
h2 { font-size: 125%; }
Note that this size will be relative to the body{} size in the styleseet so the h1s look as if they were between 16.5px/18px and the h2s between 13.75px/15px
Stylesheet Switcher
I have rarely used this method because it usually relies on Javascript or cookie acceptance from the visitor but there are good tutorials online on how to acheive this.
This usually allows you to still set the font size in px and by testing your stylesheet you will be able to see how your website 'degrades' using each of them