Reply
CSS inventory utility
Old 06-02-2008, 10:04 AM CSS inventory utility
pjaj's Avatar
Average Talker

Posts: 17
Name: Peter Jennings
Location: Oxfordshire UK
Is there a utility that will take a css file (or possibly several) and compare it with one or more html files giving a report
  1. css usage in each html file.
  2. undefined css in html file.
  3. unused css in css file.
So the output might look like

#someting defined in first.css used in a.html, b.html c.html
.otherthing defined in second.css used in b.html
....
#snafu undefined, used in c.html
....
.toomuch unused defined in first.css
pjaj is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 06-02-2008, 10:26 AM Re: CSS inventory utility
LadynRed's Avatar
Super Moderator

Posts: 6,406
Location: Tennessee
Don't know that I've ever seen such a tool.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-02-2008, 10:52 AM Re: CSS inventory utility
pjaj's Avatar
Average Talker

Posts: 17
Name: Peter Jennings
Location: Oxfordshire UK
No, neither have I , but I was thinking along the lines of the utilities that check for broken links. There are plenty of those around.

css files have a nasty habit of growing over time, and then you can never be sure that your site is now using it all, or if that chunk of obsolete css is quite as obsolete as it looked.

A bit off my own topic, you can break your css down into several smaller css files each dealing with a particular aspect of the layout and @include them into a master css which could be different for each page.
pjaj is offline
Reply With Quote
View Public Profile
 
Old 06-02-2008, 02:18 PM Re: CSS inventory utility
chrishirst's Avatar
Super Moderator

Posts: 12,826
Location: Blackpool. UK
'bout the nearest is

http://www.sitepoint.com/dustmeselectors/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-02-2008, 02:36 PM Re: CSS inventory utility
LadynRed's Avatar
Super Moderator

Posts: 6,406
Location: Tennessee
I've used DustMe Selectors.. it's pretty good
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-02-2008, 05:52 PM Re: CSS inventory utility
pjaj's Avatar
Average Talker

Posts: 17
Name: Peter Jennings
Location: Oxfordshire UK
Quote:
Originally Posted by chrishirst View Post
Correct me if I'm wrong, but this appears to be a Mac only Firefox add-on.
My Windows version of FF doesn't seem to understand any of the files, and the "User Interface" page on sitepoint.com looks very Mac-ish.
pjaj is offline
Reply With Quote
View Public Profile
 
Old 06-02-2008, 07:21 PM Re: CSS inventory utility
chrishirst's Avatar
Super Moderator

Posts: 12,826
Location: Blackpool. UK
seems to work perfectly well on my Windows 2000 & Firefox 2.0.0.14
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-02-2008, 08:43 PM Re: CSS inventory utility
pjaj's Avatar
Average Talker

Posts: 17
Name: Peter Jennings
Location: Oxfordshire UK
Quote:
Originally Posted by chrishirst View Post
seems to work perfectly well on my Windows 2000 & Firefox 2.0.0.14
My bad, I clicked on the wrong link and downloaded the package rather than the install link.

Looking good - thanks all.
pjaj is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS inventory utility
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14297 seconds with 13 queries