Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:28:04 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Accessibility  (Read 1687 times)
Me

Offline Offline

Posts: 7


« on: December 21, 2007, 02:40:19 PM »

Hi,

I would like to have a button/link on my Baker-site, that will increase the textsize of all the pages. For people who have bad eyes. Such a function would improve the accessibility of the (Baker)site. I think this can be done by some css-tricks or so. But I don't know exactly how.
Maybe someone has thought this over before...?

Any tips and/or comments are really appreciated.  smiley


Regards, Me
Logged
marathoner

Offline Offline

Posts: 495


« Reply #1 on: December 21, 2007, 04:10:02 PM »

You can achieve this by having two (or more) different templates. These templates will be exactly the same except the font sizes defined in the CSS files so that you have the different font sizes that you want. You might also want change the sizes of any containers so that they work better with the larger fonts.

Then, modify the root directory index.php file to include the code that allows you to switch templates and to make it persistent using a session variable.

Lastly, modify your template index.php to provide means for your user to select the font sizes (actually the templates) that they can select from.

Here's the code to allow persistent template switching:
http://forum.websitebaker.org/index.php/topic,7389.msg45344.html#msg45344
Logged
Ari Lindholm

Offline Offline

Posts: 31


WWW
« Reply #2 on: December 21, 2007, 09:02:15 PM »

BTW: this is not WSB module issue, this is just css- & javascript trick.
If you use these samples, you can do that with only one WSB-template

--- 1 st version, little complex - good one and flexible:

If i understand you right, you might want to do something like this one
< http://www.dyn-web.com/dhtml/sizefont/global.html >

How this could been done... please read it from here
< http://www.dyn-web.com/dhtml/sizefont/sizerdx.php >

Main thing... please use ems or % when you define text sizes in css...

--- 2nd version, quite simple:

Please check this one
< http://www.webdeveloper.com/forum/archive/index.php/t-58545.html >


YMMV when you implement this feature in your site.
Logged
marathoner

Offline Offline

Posts: 495


« Reply #3 on: December 21, 2007, 10:28:31 PM »

There are certainly different solutions to allowing different font sizes. One concern that I would have about the approach above is that it requires JS to be enabled. The reason that I suggested the other approach is that everything is done on the server and doesn't rely on the client browser having JS enabled.
Logged
Me

Offline Offline

Posts: 7


« Reply #4 on: December 22, 2007, 12:03:06 PM »

Thanks for your replies people!

I will study and tryout the stuff you pointed out. Thanks again!  smiley


Regards, Me


PS. I post in the right section next time.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!