shigajet 0 Report post Posted February 12, 2006 I brought up this question in another thread, but I'd like to know how you can allow the user to change font sizes on a blog. An example of this can be found on this site. What files would I need to edit - header.php, style.css?If you can help me out on this one, feel free to shout out. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted February 12, 2006 Shigajet,On the top right hand corner of the site you link to, there are three square buttons, small 'a', medium 'a', and a large 'a'. Clicking these buttons by a user will alter the size of the font for their display. And I think this piece of code which I found by doing a view source is the html for those links, so find the classes in one of the stylesheets and change the font-size to whatever you want it to be. <div id="fontcontrol"> <h3 class="hidden">Adjust font size:</h3> <ul> <li class="font1"><a href="#" onclick="setActiveStyleSheet('Small');return false;" title="Small"><i>Small</i></a></li> <li class="font2"><a href="#" onclick="setActiveStyleSheet('Medium');return false;" title="Medium"><i>Medium</i></a></li> <li class="font3"><a href="#" onclick="setActiveStyleSheet('Large');return false;" title="Large"><i>Large</i></a></li> </ul></div> Share this post Link to post Share on other sites
Tyssen 0 Report post Posted February 12, 2006 It's called stylesheet switching. Share this post Link to post Share on other sites
SqlByte 0 Report post Posted February 12, 2006 i remember i had problems with wordpress font size... i changed what i thought i should to smaller fonts, but it wouldnt change my font size on that page. It was realy wierd, anyway i think this could solve your problem, what jlhaslip told you.btw i realy like your blog style Share this post Link to post Share on other sites
spy_charly 0 Report post Posted February 12, 2006 try downloading another theme that has bigger fonts and then check the css and lookk for the size. If it doesnt work try seeing the php pages for some reference....i had to do so sometimes with the goolge ads...so it would be bad to check some code... Share this post Link to post Share on other sites
shigajet 0 Report post Posted February 12, 2006 Actually, the site I made a link to in my post is not my own blog, as I'm using WordPress, not Nucleus (although one could almost say they have a lot of similarities). Still, thanks for the code - and the term as well - and I'll see how it turns out. Share this post Link to post Share on other sites