News for hackers. Stuff that matters.
Re:De-clutter Your Interface with Hover Controls by calebmpeterson on Tuesday January 04, 2011 @12:04AM (#2065929)
This question crossed my mind too. Anyone have a solution?

On the other hand, I just learned the technique of using psuedo-classes early in the css selector chain. Sweet!

Re:De-clutter Your Interface with Hover Controls by gojomo on Tuesday January 04, 2011 @01:50AM (#2066138)
The solution I've used requires Javascript.

It detects when on a touch screen, and if so, adds a CSS class to one default item that gives it the same display-characteristics (including showing hidden controls and shading) as if it were being moused-over.

Then, set it so any touch on other eligible elements moves this 'current' class.

In some ways, this could be a clearer model for pointer environments, too: reveal the hidden controls on at least one element at the start, and adjust the one full-revealed item as the pointer moves. This requires Javascript, and is a bit more cluttered, but won't leave anyone in the dark about what's possible.