Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Use multiple stylesheets to change font size on webpage
Old 08-17-2007, 01:41 PM Use multiple stylesheets to change font size on webpage
Junior Talker

Posts: 3
Name: Alex
Location: Phoenix, AZ
Trades: 0
I want to give my page viewers the option of increasing the font size on our webpage.

Example: http://www.michaeljfox.org/ top left where it says Text Size A/A

I tried to look at the source code and figure it out, but no luck. I think it involves linking to a second stylesheet. Does anyone know how to accomplish this or know a tutorial that explains it?

Thanks,

Alex
Methane is offline
Reply With Quote
View Public Profile Visit Methane's homepage!
 
 
Register now for full access!
Old 08-17-2007, 06:22 PM Re: Use multiple stylesheets to change font size on webpage
Skilled Talker

Posts: 77
Trades: 0
If your website is dynamic, you can do it using cookies & 2 or 3 (or more) stylesheets. I think this might be more widely accepted than a javascript approach.

I did this on a site a couple years ago & it worked out well. I changed the width of the template with the text size so that things grew in proportion to the text size.

Likely the "best" way to do it is to let users choose their own font sizes by not declaring it in your css file. However, I don't suspect that a lot of people know that they can modify the size of website text in their browser, depending on the topic of your website.

There's some pretty good results here for how to do this with Javascript, though I don't know much about the code, but you might be able to pick something out that will work for you:

http://www.google.com/search?hl=en&q...=Google+Search
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
whooligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Use multiple stylesheets to change font size on webpage
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10211 seconds with 12 queries