how can i find in a early way that this css class is being used or not in website ?
like-
style property that i write in my css is being used or not?
and
class or id is being used in webpage?
exe:
.textstyle4{
font:normal 12px Arial, Helvetica, sans-serif ;
color:#777;
}
i want to know in my whole website where this css style is being used?
this is an example.
If you want to remove unused CSS entirely, you can use a tool such as PurifyCSS to find out how much CSS file size can be reduced. Once you get the CSS code you should eliminate, you have to remove it manually from the page.
The CSS Usage addon for firefox does what I think you are looking for: https://addons.mozilla.org/en-US/firefox/addon/10704/
If you want to see what CSS styles are being applied to an element that is being rendered on your browser you should look into using Firefox and Firebug to view the DOM and CSS information.
http://getfirebug.com/
If you are using IE8 you could use the IE8 Developer tools to do the same thing.
There's also "Dust-Me", a firefox extension to find unused CSS:
https://addons.mozilla.org/en-US/firefox/addon/5392/
However this plugin doesn't work with FF5+
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