Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:35:34+00:00 2026-06-11T06:35:34+00:00

Suppose we have this style: .parent .child { … } .parent:hover .child { …

  • 0

Suppose we have this style:

.parent .child { ... }

.parent:hover .child { ... }

Both selectors set style for child elements.

What I would like is to edit the second style.

  1. I click on .parent and set :hover state in Chrome developer tools
  2. Click on a .child element to get to child’s style but…

When I click on .child the hover on parent is gone (because it’s now set on .child).

This works in Firebug though but I need it in Chrome…

Chrome 21.0.1180.89 m

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:35:35+00:00Added an answer on June 11, 2026 at 6:35 am

    Update: Chrome now has the following new hotness:

    1. Right-click the child element and choose Inspect Element
      • Chrome will open the Elements view with the item selected
         
    2. In the Elements view, right-click the parent element and choose “Force Element State ▶ :hover”
      Screenshot of "Force Element State" menu

    3. Select the child element in the Elements view again.


    Older, valid-but-obnoxious technique follows:

    Tested with this JSFiddle:

    1. Hover the child element itself (which also hovers the parent).
    2. Right-click the child.
    3. Using the keyboard (not mouse) move the context menu selection down to “Inspect Element” and press Enter
      • Hurrah, the CSS rule for the hovered parent and selected child is available
    4. Edit the rule. (You may move the mouse to do this; the item will be unhovered, but the CSS rule with the :hover in it will not go away.)
    5. Hover the mouse back over the element to see the changed rule take effect.

    Note that if you do it wrong in step 3 (if you use the mouse) you have to select a different element first before trying again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a css style like this: .foo a, .foo a:visited .foo a:hover
Suppose I have this table parent | child 1 2 1 3 2 4
Suppose I have code something like this: #include boost/thread/mutex.hpp using boost::mutex; typedef mutex::scoped_lock lock;
Suppose I have a document like <style type=text/css> div { border:1px solid; padding:15px; }
suppose I have a nested tables in html like this <table> <tr> <td><table> <tr>
I have a custom style file( style.xml ) in res/values that looks like this:
Suppose to have a code like this: <div class=notSelected> <label>Name <input type=text name=name id=name
Suppose I have this class: class MyClass(object): def uiFunc(self, MainWindow): self.attr1 = foo self.attr2
Suppose I have this table: id | name | city ------------------ 1 | n1
Suppose I have this (C++ or maybe C) code: vector<int> my_vector; for (int i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.