Connexion
One Laptop per Child Logo
Google Search
Google

LabsSphère Catégories
Css (9)
Php (8)
Javascript (11)
Xoops (5)
Divers (1)
Design (10)

An accessible, keyboard friendly custom select menu


Auteur : Roger Johansson | 456 Berea Street.com
Date : 2011-11-03T20:04:17+01:00
Lectures : 1

I've always been wary of styling form elements too much. Possible usability and accessibility issues, browser quirks, and the fact that the CSS specification does not define form control styling are the main reasons.



With that said, sometimes you have to do things you don't really want to. Like styling select elements, which I've recently had to find a way to do. There are quite a few workarounds for doing this out there. However, most of the ones I looked at replace the select element with a bunch of links which changes semantics and behaviour a bit too much for my tastes. I couldn't find any implementation that I was completely happy with, so I took the best one I could find and tweaked it.

Read full post

Posted in , , .

Copyright © Roger Johansson






URL : http://labs.xoofoo.org/modules/planet/view.article.php/18452
Trackback : http://labs.xoofoo.org/modules/planet/trackback.php/18452

Les commentaires appartiennent à leurs auteurs. Nous ne sommes pas responsables de leur contenu.
Auteur Conversation