On 6/30/11 7:37 PM, Philippe Wittenbergh wrote:
On Jul 1, 2011, at 10:53 AM, Mark Volkmann wrote:
Are :hover and :focus the only ways that CSS can change something
based on user interaction?
And :active
http://www.w3.org/TR/css3-selectors/#the-user-action-pseudo-classes-hover-act
I realize that there are many more ways that involve JavaScript.
It would be interesting if there was a :click pseudo-class so CSS
properties of a clicked element could be changed.
:active ?
Limited to elements defined as interactive, though (buttons, links).
Philippe
For changes on click to a _different_ element, you can use the :target
pseudo-class together with a link to an element's ID -
http://reference.sitepoint.com/css/pseudoclass-target
--
Cordially,
David
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/