This is a discussion on "Changing text-size ???" within the JavaScript Forum section. This forum, and the thread "Changing text-size ??? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Changing text-size ???
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
I happened to stumbled upon this website http://www.tristarwebdesign.co.uk/ whereby on the (near) top-left corner, the option of user being able to select text caught my attention. This could help the viewers of my website to select the tex-size they feel comfortable with.
Similar JavaScript can be found in http://www.dynamicdrive.com/dynamicindex9/textsizer.htm but this ONLY has two links of "Larger Font" and "Smaller Font", which users CONTINUOUSLY have to press to see the desired font size. However, from the above website, you can see that the user can select the font-size STRAIGHT-AWAY by simply "choosing" (rather than continuously clicking) the font-size they desire. You can see from this site: http://members.lycos.co.uk/darsh25/P...e/services.php that although, I've achieved the desired look but not the function as yet (top-left corner). Text file of "services.php" i.e. the coding can be seen from http://members.lycos.co.uk/darsh25/P...rvices.php.txt Can anyone hence help me achieve the result EXACTLY as it occurs in http://www.tristarwebdesign.co.uk/ ??? I only wish to have this changes appearing ONLY in my "centerContent" container (hence NOT in the "footer" area). I could do with either using CSS (if such a thing is possible without creating a whole new stylesheet & increasing the size of ALL elements) or JavaScript (which would only need one single file, rather than many different stylesheets.) My other related documents (like stylesheet & "inc" file, etc.) can be seen on: http://members.lycos.co.uk/darsh25/Personal%20Website |
|
|
|
#2
|
|||
|
|||
|
Re: Changing text-size ???
I had a look at the site you mention. The process appears to works better in IE and Opera than it does in Firefox. But then that may or may not be my browser settings and thats the rub. Personally I think the idea of providing these text sizing links is a bit of a sop to the idea of accessibility. If you code your css to allow for variable text size by using em, my prefered method, or %, then the end user will get the text size that they have set their browser to and consider right for their needs. Also you should not be taking the decision to only make changes in text size available only on the text in your centre section. If the end user needs larger text, they need it everywhere, not just on bits you have pre-determined. |
![]() |
| Tags |
| changing, textsize |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Text Size | crackafaza | Website Planning | 7 | Aug 6th, 2007 14:18 |
| prevent visitors changing size of text. | mmmwww | Starting Out | 6 | Apr 28th, 2007 05:19 |
| CSS text size | agibbs1983 | Web Page Design | 4 | Sep 5th, 2006 17:51 |
| Text Size | MajorTom | Web Page Design | 8 | Jun 14th, 2005 12:08 |
| text size | dannygoor | Web Page Design | 6 | Jan 9th, 2004 16:24 |