14

Does anyone know if there is some kind of tool to see/pick the best CSS selector based on CSS specificity to target a particular div?

I know what has higher specificity, but sometimes when working on other people projects where they have deeply nested selectors in there CSS,it is hard to find a way to override there stuff.

I know in Google chromes dev tool/firebug it shows a lot of information at the bottom when viewing the page source, is that something that should be used for this or is there other methods?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
CodeDevelopr
  • 1,267
  • 3
  • 17
  • 30

3 Answers3

4

Since it's very widely used, no one's suggested it and fabianhjr suggested I do so, I'm going to recommend Firebug for Firefox. It's similar to Chrome's inspector, and allows you to see the CSS given to an element, as well as any overridden properties:

enter image description here

Bojangles
  • 99,427
  • 50
  • 170
  • 208
  • @Bojangels the domain qtax.se has only a image with the information it has been seized. Could you elaborate why you added the link and how this belongs to this thread? – surfmuggle Oct 13 '17 at 09:07
0

Would be great to see something like this in Chrome:

enter image description here

SausageFingers
  • 1,796
  • 5
  • 31
  • 52
-1

Use Chrome Inspector.

DevFest 2010 - Chrome Developer Tools - In Depth

Google Chrome Developer Tools: 12 Tricks to Develop Quicker

Google's Page on Dev Tools

Fabián Heredia Montiel
  • 1,687
  • 1
  • 16
  • 30