How to debug :hover in Chrome

At times we need to force hover state when we are debugging CSS in style inspector in Chrome developers tools. Chrome supports forcing a certain state on an element. Here are steps to force state :hover on an element in Chrome developers tools.

  1. Open Chrome developer tools and watch the desired element. Click on pin like icon on top right to display options to enable various states as shown below:
  2. Select the :hover checkbox to force hover state on selected element.
  3. Once hover state is selected, you will immediately be able to view hover style in inspector as shown in above screenshot (li:hover in current example).
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments