- Add the class
post-single-content-innerto the elements you want to zoom in/out. I did it by creating a 600px wrapper div and putting a div with the classpost-single-content-innerinside it. - Always set the width of the
post-single-content-innerclass to 100%:CSS.post-single-content-inner { width: 100% !important; } - Create buttons for controlling the size on the page:
XHTML
<div class="text-size"> <a href="#" id="decfont">A-</a> <a href="#" id="defaultfont">A</a> <a href="#" id="incfont">A+</a> </div> - Add this JavaScript:
JS
jQuery('#incfont').click(function () { jQuery('.post-single-content-inner').css('zoom', 1.2); return false; }); jQuery('#decfont').click(function () { jQuery('.post-single-content-inner').css('zoom', 0.8); return false; }); jQuery('#defaultfont').click(function () { jQuery('.post-single-content-inner').css('zoom', 1); return false; });