CSS Analyser Tool?

liunx

Guest
Is there a tool somewhere that can analyse my CSS and warn me of unused styles?

My Stylesheets are getting quite big and I want to check if I use certain styles anywhere but I'm not trawling through all my pages...TopStyle might be able to do that.Mozilla (Firefox) may have an extension that does that, too.

KDLATopStyle Pro (<!-- m --><a class="postlink" href="http://www.bradsoft.com/topstyle/tour/siterpt.asp">http://www.bradsoft.com/topstyle/tour/siterpt.asp</a><!-- m -->)I suspect the thing from the WestCIV guys may have that feature, too.

<!-- m --><a class="postlink" href="http://www.westciv.com/style_master/academy/css_tutorial/index.htmlWell">http://www.westciv.com/style_master/aca ... x.htmlWell</a><!-- m --> most of my pages are written in ASP and require access to a database, so I need an on-line analyser or a program that can analyse a website on-line rather than on a local machine.

TopStyle Pro allows analysis over a localhost connection... but thats too much messing about for what I needTry this: <!-- m --><a class="postlink" href="https://addons.mozilla.org/extensions/moreinfo.php?id=60">https://addons.mozilla.org/extensions/m ... .php?id=60</a><!-- m -->

There's a CSS analyzer in the "Tools" section.

You'll need the Firefox browser, too: <!-- m --><a class="postlink" href="http://www.mozilla.com/firefox/">http://www.mozilla.com/firefox/</a><!-- m -->

KDLAThanks KDLA, that's a very useful extension :)

But the 'Validate CSS' option (which I assume is what you were talking about) does nothing more than redirect you to the W3C CSS Validator websiteI don't think that type of analyzer would work online. Perhaps using Greasemonkey (<!-- m --><a class="postlink" href="http://greasemonkey.mozdev.org/">http://greasemonkey.mozdev.org/</a><!-- m -->), but would require a lot of work.

Why not Download the whole site and then use TopStyle?Thanks KDLA, that's a very useful extension :)

But the 'Validate CSS' option (which I assume is what you were talking about) does nothing more than redirect you to the W3C CSS Validator website

You're right. I was having a blonde moment there -- I just Download ed a bunch of FF extensions for javascript validation, and confused those with the CSS validator. :rolleyes:Well most of my pages are written in ASP and require access to a database, so I need an on-line analyser or a program that can analyse a website on-line rather than on a local machine.The kind of analysis you want to do should only take saving a couple of representative rendered pages as HTML and running against those with a static tool.Hmmm... what's a simple way of Download ing an entire website then?http://www.google.com/search?hl=en&rls=GGGL,GGGL:2005-09,GGGL:en&q=Download +entire+website&spell=1Good call :)
 
Back
Top