CSS Switcher

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
6/14/2011 7:01:04 AM
Total Posts 118

CSS Switcher

I want to create an alternate style sheet for font size (to increase and decrease the size of font). I reckon the easiest way to do this would be to allow users to change the skin, however I want users to be able to do this without logging in. Is there an easy way to do it?

6/14/2011 8:27:47 AM
Total Posts 2210

Re: CSS Switcher


Check out the Anchor Center website. We used some javascript to increase the font size. The javascript will increase the size of the font on the body. The key is to have all other font sizes, that you want adjustable, based on the body font size. For instance:

body {font-size: 13px}

h2 {font-size: 105%;} or h2 {font-size: 1.05em;}

All font sizes that you want to remain the same, make sure you use exact PX measurements.

If you grab the javascript from that site, you should be on your way.

Joe D.

You must sign in to post in the forums. This thread is closed to new posts.