Skip to content

jQuery : Increase / Decrease All Element Font Size

just figure it out couple minutes ago, hope this is useful

jQuery(‘body’).each(function(index) {
jQuery(this).find(‘*’).each(function() {

var cur_size =  jQuery(this).css(‘font-size’);
cur_size = cur_size.replace(“px”,””);
jQuery(this).css(‘font-size’, (cur_size – 2));

// to increase cur_size + 2


Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.