Web Design and Development Forums

Accessibility

This is a discussion on "Accessibility" within the Accessibility and Usability section. This forum, and the thread "Accessibility are both part of the Plan Your Website category.

Old Jun 16th, 2007, 12:07   #1 (permalink)
New Member
 
Join Date: Jun 2007
Location: Luton, UK
Age: 36
Posts: 4
Send a message via MSN to The Elk
Question Accessibility

Hi all,

On a lot of websites, the developer has included a feature for increasing font size for people with impaired sight - they generally use the A-A-A icon - and by clicking it - all text on the page increases accordingly.

Does anyone know what coding is used to achieve this result?

I have a website www.hertsiag.co.uk that needs this adding to.

Many thanks

Paul
The Elk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 16th, 2007, 18:15   #2 (permalink)
Reputable Member
 
BGarner's Avatar
 
Join Date: Oct 2006
Location: In front of the computer.
Posts: 260
Re: Accessibility

First off, welcome to the forumz!

I would assume this is achieved by using multiple style sheets. In the CSS just change the font-size property and then save them as three different CSS files and link to them accordingly. That's how I would do it; I don't know if there is a better way...
__________________
If a word in the dictionary were misspelled, how would we know?
BGarner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 17th, 2007, 04:15   #3 (permalink)
 
JacobHaug's Avatar
 
Join Date: Dec 2005
Location: On Internet
Posts: 5,550
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Accessibility

Welcome to Webforumz, enjoy your stay!
__________________
JacobHaug.com - My Portfolio
JacobHaug is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 17th, 2007, 23:30   #4 (permalink)
Moderator
 
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,157
Re: Accessibility

Quote:
Originally Posted by BGarner View Post
I would assume this is achieved by using multiple style sheets. In the CSS just change the font-size property and then save them as three different CSS files and link to them accordingly. That's how I would do it; I don't know if there is a better way...
You can also use javascript to increase font-size incrementally -- so the buttons mean "make the font larger/smaller".

I used to supply this feature, but decided it was unnecessary clutter. Text-resizing is best done by the browser, with controls that the user is familiar with.

The following code allows you to set minimum and maximum sizes, and choose which elements to apply resizing (you could even do it by class with some more code).

Code: Select all
var font_size = 1;
var MAX = 8000;
var MIN = 0.8;
function adjust_text(num)
{
    font_size += num;
    if(font_size > MAX)
    {
        font_size = MAX;
    }
    if(font_size < MIN)
    {
        font_size = MIN;
    }
//    document.getElementsByTagName("body")[0].style.fontSize = font_size + "em";            // Use this for resizing all text on the page
    document.getElementById("resize").style.fontSize = font_size + "em";                        // Use this for resizing just one element
}    
adjust_text(0);

Last edited by MikeHopley; Jun 17th, 2007 at 23:42.
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 00:23   #5 (permalink)
 
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,389
Re: Accessibility

I quite like text resizing buttons on a page. As long as they're simple, obvious and work then I don't see a problem. Just another handy accessibility feature that less computer literate user may find useful. Presuming that all users who struggle to read average sized on screen text know how to use the accessibility features of their browser is a bit over presumptuous, in my opinion. Chnaging text size within the web page itself is often the most failsafe way of doing it, as long as it is done properly.

Pete.
pa007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 02:10   #6 (permalink)
 
sannbe's Avatar
 
Join Date: Dec 2006
Location: San Francisco
Age: 57
Posts: 1,739
Blog Entries: 3
Re: Accessibility

Hi Ya, Paul!
__________________
Sannbe "To the Future!" JMS
sannbe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 08:21   #7 (permalink)
Moderator
 
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,157
Re: Accessibility

Quote:
Originally Posted by pa007 View Post
I quite like text resizing buttons on a page. As long as they're simple, obvious and work then I don't see a problem.
I agree. I don't dislike them.

But I don't think a page will necessarily be better by adding them. It's a matter of judgement and design balance: everything you add to a page affects the balance of attention. A page is not necessarily better by adding more stuff.

Let's take it a step further. I have access keys and skip links on my site, but the skip links are invisible (they appear on focus, if you press tab) and the access keys can only be found if the user goes to the help page.

The most effective way to guarantee users can find these features is to make them visible on every page -- and ideally give them a heavy visual and structural weighting (such as stuffing them in an <h2>).

By doing that, however, I would also lose something: I would complicate my design. There would be more stuff to look at, so users would be slightly delayed in scanning the page and finding what they want. The more heavily I emphasise these accessibility items, the more likely users are to find them and use them -- but also the more distracting they are from my main content.

So it's a matter of balance and judgement. Personally I prefer accessibility to be done more in the background, rather than shove it in the user's face. Users have their own ways of doing things, and my main aim with accessibility is not to allow my design to interfere with their familiar methods. That's why I think you must be very careful with access keys, for example.

Users spend most of their time on other websites, not yours. Accessibility widgets look nice to the designers, but I'm sceptical of their usefulness. Where the browser itself offers a feature, such as text-resizing, I prefer not to clutter my page with a custom widget that replicates it.

Again, I'm not saying that such things are bad or incorrect. I'm just saying that it's a matter of balance and judgement. Some designers will give a higher weight to "in your face" accessibility; others will prefer to avoid cluttering the page.
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 18:21   #8 (permalink)
New Member
 
Join Date: Jun 2007
Location: Luton, UK
Age: 36
Posts: 4
Send a message via MSN to The Elk
Re: Accessibility

Hi - thanks for all your comments!!!

I like the sound of creating more than one CSS file - with different stylesheets - and I understand the principle - but don't know how to go about getting it all to work together - any ideas?

Cheers
Paul

Last edited by The Elk; Jun 18th, 2007 at 18:26.
The Elk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 18:27   #9 (permalink)
New Member
 
Join Date: Jun 2007
Location: Luton, UK
Age: 36
Posts: 4
Send a message via MSN to The Elk
Re: Accessibility

Cheers mate!
The Elk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 18:28   #10 (permalink)
New Member
 
Join Date: Jun 2007
Location: Luton, UK
Age: 36
Posts: 4
Send a message via MSN to The Elk
Re: Accessibility

Quote:
Originally Posted by JacobHaug View Post
Welcome to Webforumz, enjoy your stay!
Thanks!
The Elk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 18:35   #11 (permalink)
Elite Veteran
 
karinne's Avatar
 
Join Date: Jan 2007
Location: You know where
Age: 30
Posts: 4,883
Re: Accessibility

Invasion of the Body Switchers
__________________
a web design portfolio | web non-sense
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 18th, 2007, 23:14   #12 (permalink)
Moderator
 
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,157
Re: Accessibility

Quote:
Originally Posted by karinne View Post
That's actually what I used first for my site.

Later on, however, when I needed more style switching, I found their approach a little heavy-handed. Instead of specifying alternate stylesheets, I just added all the stylesheets by default, then disabled them with javascript:

Code: Select all
document.getElementById("myStyleSheet").disabled=true
This helped me to manage eight "alternate" stylesheets modularly, with relatively little javascript.

Then you can enable them as required:

Code: Select all
document.getElementById("myStyleSheet").disabled=false
The disadvantage is that these will no longer be identified as alternate stylesheets by the browser, so you won't be able to switch them using the browser.

Of course, you still have to track the styles with cookies.

To make it degrade gracefully when javascript is off, I added a final stylesheet (the last one takes precedence, all other things being equal), which resets all the styles to default.

Last edited by MikeHopley; Jun 18th, 2007 at 23:18.
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jun 21st, 2007, 09:20   #13 (permalink)
Up'n'Coming Member
 
Join Date: Jun 2007
Location: Germany
Posts: 63
Re: Accessibility

That site would look cool centered!!
__________________
I can't even call the thing I eat on a table. I'd loose my appetite!
fuzzee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessibility Checker July Accessibility and Usability 5 Apr 23rd, 2008 13:20
Test Accessibility Jack Franklin Webforumz Cafe 4 Jan 30th, 2008 21:25
Why Accessibility is Important for SEO Webnauts Search Engine Optimization (SEO) 0 Nov 13th, 2005 07:58
Why Accessibility is Important for SEO Webnauts Accessibility and Usability 0 Nov 13th, 2005 07:58



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 16:23.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59