Jul 17, 2016, 10:48 PM
Script to find unused CSS styles
I have a set of CSS files and HTML files in my local drive and need to find certain styles in css (lets say "margin-top" is the style I want to find in the CSS).
If this is found then I want to find the class in which "margin-top" is declared. Lets say "margin" class has this style.
Then the class "margin" should be checked across all the HTML files to check whether it has been used at least once or not.
Then the result should be shown.
is there any script that you can run on your local machine to find this out? Any help is welcomed.
(This post was edited by mohan on Jul 28, 2016, 11:24 PM)