Removing unused CSS from website code

css, html, javascript, jquery, php

Solution

You can get pretty close to what you are asking for with the Google Chrome's Audit tab under Developer Tools. It does not remove unused CSS, but it will show you what CSS rules are not being used.

Observe:

Problem

I am currently modifying a website template which I have found for free on the web. When i remove, for instance, a `div` from the code, the CSS for it remains behind, in one or more files. Is there a tool which automatically removes unused CSS from my code? So i don't manually search for every `id` and `class` that i don't use anymore and remove the code.

Original source

Related problems