Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 21
    :active works while the mouse is down. Depending on what you're trying to do, you may be able to make it work using the CSS4 pseudo-class :target. Commented Nov 29, 2012 at 16:31
  • 4
    :target is not new to Selectors 4. It has been available since Selectors 3, which was already a recommendation for a year at the time of writing. Commented Sep 22, 2015 at 16:12
  • you will need to provide the interaction for other means of input as well, say touch, keyboard, joystick, voice control. Commented Jul 13, 2022 at 12:00