javascript resize text example

0

How to change / resize page font using javascript.Check this demo and download javascript resize text example.For a example if you click button, then page font size will be increase and after click another button then reduce font size.


Following funtion is getting parameter as value of increase and then change the body font size.

How to use this function.

Note:

You can change 0.2 value as you wish to multiplier.

Also you can change fontFamily, fontWeight, background, margin, padding,….. like css properties.

View Demo

Share.

About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.