Latest Accessibility News on Accessify

Accessifying Accessify.com for iPhone

One of the things I wanted to do with the rebuild and restyle with Accessify was to make it a little more slimline in terms of HTTP requests (in other words, fewer requests for style sheets that are not needed - one CSS file to do the lot) yet still support other devices. I have to confess that while there is just one CSS file (which has a far future expires cache setting on it so as not to cause needless reloads), which does include screen and print styles, I’ve only really taken care of the mobile display on the iPhone, mainly because that’s what I use and have found easy to test on!

I saw this article regarding style sheets for mobiles today (thanks to Brucey and Twitter) and it prompted me to share some of the tweaks that I did for iPhone friendliness. The key thing was not to massively redesign the site’s look and feel for a specific device, but rather give certain elements a notch up or down in size to make them usable for those small pointing devices that you and I know as fingers. So, for those interested in doing something similar, here are a few notes and doodles

A bit about the CSS

I’ve not implemented the suggestions in the article linked to above (I only discovered the link), but will almost certainly revise my approach accordingly. I did, however, use the media type using the max-width property to pass iPhone-specific style overrides to that device:

@media screen and (max-device-width: 480px)
{
	#primarynavigation {font-size:3em;}
	#blog_search {display:none;}
	etc etc
}

The effect on the design

The thumbnails below link through to larger, annotated images (PNG) format, showing how subtle changes to font size can make the site much more readable/usable on a small screen device but without ditching the entire style sheet. Depending on the style of your site some of this may be easily do-able, some of it may not. Your mileage, as they say, may vary.

Simplified search area and larger body copy

The search area on Accessify was simplified for iPhone and pared back to its bare minimum. Likewise the tiny syndication links (to Twitter et al) were removed also. Some might argue that this is wrong as I’m hiding functionality, but it’s not critical functionality (in my opinion). Also, the body font size is boosted for easier readability:

Firefox view of search area iPhone view of search area

Footer categories - font size boost

At the end of the news page is the list of Wordpress-generated categories and archives. These were almost unusable on the iPhone without first zooming in and then making use of the world’s tiniest finger, so it was time for another font size increase:

Firefox view of footer categories iPhone view of footer categories

Not just accessify …

I’ve also been trying my best to apply the same treatment to other sites that I have ticking over, for example the book support site (which has been around for a couple of years now). I recently updated that a little and found that while it generally rendered OK, it could also benefit from some font size boosts. In particular, the tab navigation elements which work fine on a normal desktop browser were somewhat lacking. For the iPhone I opted to change these tabs to buttons that sit like a small stack of (rounded-off) bricks. Once again, a subtle change but just enough to make it more iPhone-friendly:

Firefox view of beginningwebdesign.com tabs iPhone view of beginningwebdesign.com tabs (rejigged as buttons)

So, like I said earlier, nothing too earth shattering here - just an exercise in giving your style sheets just the slightest of tickles to make the site markedly easier to read on a small screen device but without resorting to a completely different style sheet or no style whatsoever.

Now, I need to go back and read that article and see what I cab do for other handheld devices. If anyone can point me in the direction of some emulators that I can run on my Mac, I’d really appreciate it!

Filed under: CSS, Site Admin, Techniques
Comments (3) Posted by Ian on Wednesday, January 28, 2009

Click Here? No thanks. I have a Better Idea …

So I was reading this post on copyblogger entitled Does Telling Someone to Click Here Actually Matter? and I could feel the old blood a-boiling as the article dismissed all the work that many people in the accessibility circuit have put in so far in trying to get people not to use the damn phrase. Now, I could have vented off in the comments section, but then I decided to do something more constructive.

If you absolutely must use the phrase ‘click here’ because all your evidence or beliefs or hunches suggest it has the greatest effectiveness for click-through, please don’t do it at the expense of accessibility (that is for screen reader users as well as the obvious search SEO/advantages). You can use CSS to achieve your aims and keep the link phrase as something useful for screen reader users and search.

The solution is basically this:

<p><a href="#" class="clickhere"><span>Click here</span> to learn about widgets </a></p>

… using this CSS (or variant thereof):

body {color:#000;}
a{color:#006;font-weight:bold;}
a:hover,a:focus{color:#090;}
a.clickhere, a.clickhere:hover, a.clickhere:focus {text-decoration:none;color:#000;font-weight:normal;/* to match body color and weight */}
a.clickhere span {text-decoration:underline;font-weight:bold;color:#006;}
a.clickhere:hover span, a.clickhere:focus span {color:#090;;text-decoration:underline;font-weight:bold}
code {color:#00FF33;background:#000;padding:2px;}

It will produce a visibly underlined click here but the rest of the text ("to learn about widgets") will match the body text. This will not help fully sighted users who are just scanning through the document picking out links visually, though - they will still see only ‘click here’, ‘click here’. So it’s a compromise, but sometimes that’s what you have to do in battle!

You can view a page with a working example (that does not clash with this site’s own style sheets) here. Or perhaps I should write click here to view a working example.

Filed under: Accessibility, Techniques
Comments (20) Posted by Ian on Wednesday, September 19, 2007