Older Twocentsworth.com Archives


/* highlight paragraphs for accessibility */

Today I came across something that I immediately wanted to implement on my weblog. And I did.

I somehow found my way to the MultiZilla site and the first thing I notice is the background color changes when I click on a paragraph.

People that know me well, know that I highlight paragraphs or sentences as I read online. It’s a habit that I’ve picked up over the past 8 years. I claim that it’s easier on my eyes, but I really don’t know if that’s the case. I just do it naturally and I’m assuming that my natural instincts are what’s good for me. That thinking has gotten me into trouble in the past, but we won’t go there right now.

Ok, so I looked at the style sheet for http://multizilla.mozdev.org/ and I see the following snipet:

/* highlight paragraphs for accessibility */
p:active {
background-color : #FF9400;
color : #000000;

I hadn’t read anything about this technique in the wonderful Dive Into Accessibility site, and I haven’t heard or read about it in some of the HCI lists that I occasionally peruse. Since I don’t have any data to back it up, I’m not sure it’s really such a good thing, but it works for me. Does anyone else care to comment?

You’ll only see it if you’re using a browser that correctly supports the psuedo-class :active. Phoenix does.

Originally published on Thursday February 6, 2003 at 4:25 am

[1] Comment

that's kinda cool. i've seen it done on hover, but never on active. the hover thing is nice because you don't have to hold down the button, nor do you have to guess it's there, but at the same time it could get annoying (though wherever i've seen it, it was mostly a design thing, rather than accessibility, and the background would go from say light gray to lighter gray).

and it doesn't seem as necessary on a site like this (white with black text), but i often highlight text when people mix colors stupidly. i could see this being a decent accessibility feature, not only for whatever kindness it does to your eyes, but also for people who have trouble reading without following along with a finger or whatever.

and it works in mozilla.

nick said this 18 years, 4 months ago §

Comments were disabled for this post. This happens for a variety of reasons and most likely it's not your fault. Unless you're a spammer. Then it might be your fault.