Solved

CSS Cleaner or Code Compare

Posted on 2015-02-18
3
151 Views
Last Modified: 2015-02-18
Out of curiosity, is there an online service or download that will compare a website and the CSS file to see if there are entries within the CSS file that are not being used anywhere on a website?

I think I have a bunch of bad/old/unused CSS entries in a certain file.
0
Comment
Question by:rgranlund
3 Comments
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 250 total points
ID: 40617132
There are several.

The DustMe FireFox extension: https://addons.mozilla.org/en-US/firefox/addon/dust-me-selectors/

A JQuery script: http://joaquinnunez.cl/blog/2009/10/06/jquery-css-cleaner/

The BeeCSS markup generator: http://beecss.theextremewebdesigns.com/

That last one is sort of "detect by proxy."  You paste in your HTML and it returns a blank CSS sheet with the selectors used in the HTML.  Given that, you can figure out what isn't be used from your current stylesheet.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 40617210
I use the  CSS Usage 0.3.3  Add-on in Firefox.  It will check your CSS and provide a 'cleaned' version if you ask for it.  https://addons.mozilla.org/en-us/firefox/addon/css-usage/
0
 
LVL 7

Author Closing Comment

by:rgranlund
ID: 40617245
Thanks!  I had no idea these were available.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question