well, here is one way of doing it:
<html>
<head>
<style>
#body {font-size:16pt;}
</style>
</head>
<body id=body>
<button onclick="document.all.body.style.fontSize='22pt';">make text bigger</button>
Also if you wanted to scale the side one larger you could always use the larger keyword in css.
Also if you have another set font size you want to use you could have two stylesheets and replace the stylesheet using some javascript/dom.
Both these methods probably won't be to friendly to older browsers though. ===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.