Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Possible Duplicate:
How to identlfy unused css selectors and rules for css pages which cover multiple pages and are installed locally?

I'm looking for a tool which is capable of indicating in which html files a css selector is being used.

Ideally, this would also work on localhost.

share|improve this question

marked as duplicate by John Conde Feb 20 '12 at 20:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Uh, you can't wait for answers? webmasters.stackexchange.com/questions/16995/… –  feeela Jul 17 '11 at 16:17
    
@feeela sorry, but although both questions are related to css, you'll see they are not identical if you read carefully. This question is about used selectors and where they are used, the other one is about UNused selectors. –  Argoron Jul 17 '11 at 16:27
    
And if have know about all unused selectors in a CSS-file, you automatically know about all used selectors… –  feeela Jul 17 '11 at 18:41
1  
@feeela basically correct, however what I'm interested in is not only which ones are used, but where they are used, i.e. which html files contain a certain class or id, so that, when I modify it, I know which pages are impacted and will not forget any. –  Argoron Jul 17 '11 at 19:17
    
These questions are similar enough that they should just be combined. –  Lèse majesté Feb 20 '12 at 16:22

1 Answer 1

If you code in an IDE that has a notion of projects then the easiest way is to to a project wide search for the selector of your choice.

If it needs to be in the final HTML that gets parsed, I don't know sorry.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.