Guuuuys, I need me some help here. I want to add font resizer to my site, but not as a widget. Any propositions for plugin/CSS code?
put this in addtional css of customizartion tab p { font-size:19px; } change 19px to size of your choice
it only changes font size of <p> tag. I'm guessing that you want to increase size of the text of your novel chapter
I believe what he wanted is a button to change the size of the text according to user's preferences? Your coding seems to be a permanent change..
Yeah, permanently changing the font size is no problem. What I need is that nifty little thing some pages have above or under the post title, changing only the font size of the content.
Code: <html> <body> <input type="button" value="Increase Font Size 2px" onclick="increaseFontSizeBy2px()"> <input type="button" value="Decrease Font Size 2px" onclick="decreaseFontSizeBy2px()"> <p id="b">Font Size by 1 Pixel</p> </body> <script> function increaseFontSizeBy2px() { txt = document.getElementById('b'); style = window.getComputedStyle(txt, null).getPropertyValue('font-size'); currentSize = parseFloat(style); txt.style.fontSize = (currentSize + 2) + 'px'; } function decreaseFontSizeBy2px() { txt = document.getElementById('b'); style = window.getComputedStyle(txt, null).getPropertyValue('font-size'); currentSize = parseFloat(style); txt.style.fontSize = (currentSize - 2) + 'px'; } </script> </html> I tried this after searching for a bit on stackoverflow Here's the sauce https://stackoverflow.com/questions...ith-a-click-of-a-button-using-only-javascript
Thank you, I already resolved this problem by doing what I didn't want to do - adding font resize option as a widget. Oh well.