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.

CSS Forum


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



Reply
How can I add a function that the user can resize the text on my site.
Old 10-11-2006, 07:05 PM How can I add a function that the user can resize the text on my site.
Webmaster Talker

Posts: 626
Trades: 0
I have noticed on some sites that there are three 'A's in a top corner. One small, medium and large. When you click on the letter it either enlarges or reduces the size of the font on the screen.

How do I add this functionality to my site?
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-11-2006, 10:15 PM Re: How can I add a function that the user can resize the text on my site.
carterdea's Avatar
Ultra Talker

Posts: 353
Location: Arizona
Trades: 0
http://www.alistapart.com/articles/bodyswitchers

for each style sheet change the text size

hope that helps
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 10-11-2006, 11:43 PM Re: How can I add a function that the user can resize the text on my site.
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You don't even need Javascript to allow users the ability to resize the text.
Code:
body {
font-size: (value)% or (value)em;
}
This will allow any user to adjust the font size without requiring a mouse. Much better than the stylesheet switcher IMHO.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 02-16-2008, 05:27 PM User-controlled change of font size
aschecht's Avatar
Extreme Talker

Posts: 190
Name: A
Location: San Jose, CA
Trades: 6
Wanted to revive this thread to get opinions about the best way to incorporate user-controlled ability to increase or decrease font size. Many of my users won't know how to change font size from within their browser so I'll be including buttons that will allow them to do this.

I've found descriptions of ways to do it with javascript and ways with CSS. Both seem to require setting cookies if one wants the change to apply to other pages on the site and return visits from the same user (which I do).

I found a javascript solution here: http://bucarotechelp.com/design/jseasy/95052001.asp

I'm interested in comments on the relative pros and cons of the different ways of implementing this function.

Thanks,

Andrew
aschecht is offline
Reply With Quote
View Public Profile Visit aschecht's homepage!
 
Reply     « Reply to How can I add a function that the user can resize the text on my site.
 

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.40031 seconds with 12 queries