
|
|
<html>
<head>
<style type="text/css">
#container { font-size: 12px; }
#layers { font-size: 240%; }
</style>
</head>
<body>
<div id="container">
I'm 12px
<div id="layers">
I'm a %'age of the containers px value!<br />
<a href="#" onclick="document.getElementById('container').style.fontSize='18px';return false;">Click me to make this
bigger!</a><br />
<a href="#" onclick="document.getElementById('container').style.fontSize='5px';return false;">Click me to make this
smaller!</a>
</div>
</div>
</body>
</html>

Users browsing this forum: No registered users and 0 guests