I am using Chrome dev tools and am working on a code base I did not create.
There are deeply nested elements that I need to reach all over the place. In order to select them with CSS I feel like I'm manually following the list of HTML elements with my eyes ( which is taking me forever).
There should just be a tool that allows me to select the top element and the (deeply) nested element I want - then give me the hierarchy in a CSS formatted block so I can go to work.
I am curious if such a tool exists or if there is an equivalent (possibly in Chrome dev tools somewhere? ).
Thank you.
I'm a little unclear on the question (so I probably shouldn't be answering it!) but if you are asking for a way to quickly get a CSS selector for deeply nested elements you might try Firebug.
Does a very good job of sorting out the required specificity.
As @TaoistWA pointed out in the comments, "Copy CSS Path" is another option.
You can, of course, combine them both within the style panel to test your changes on the fly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With