Arrow

HTML dev tools: testing the hover state of elements in Chrome and Firefox

First published on August 18, 2013

Something I recently discovered, which has been around for at least a year in Chrome and at least a couple of years in Firefox / Firebug: you can preview and debug the hover state in their dev tools without actually hovering over the elements. This is very handy, especially if you’re familiar with the frustration of hovering over the element with your mouse, then trying to quickly move to edit the CSS without losing the hover state.

Chrome:

Testing the hover state in Chrome

Firefox:

Testing the hover state in Firefox

You can also test the “active”, “focus”, and “visited” (in Chrome) states.

Arrow

Speak your mind

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word