Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: Searching for Unused CSS Selectors

Submitted by on November 8, 2010 – 8:25 amNo Comment

There is a perfect Firefox add-on letting you search used CSS selectors: Dust-Me Selectors. In this article I would like to tell you about this.

Description of Dust-Me Selectors

Dust-Me Selectors is a Firefox extension which searches unused CSS selectors.

It retrieves all selectors from all style tables on a page you view, then it analyze this page to find unused selectors. The data is stored so when you test the further pages, selectors can cross.

You can test pages one by one or make analysis of the whole site. Thus you will  do unused selectors’ profiling.

The main abilities
  • Maintains local and remote style tables including <link>-elements, <?xml-stylesheet?> (<?xml-stylesheet?> processing instructions) and @import statements. (Pay attention: rules inside <style> blocks which are not @import statements  and inline-attributes of styles are not included.)
  • Maintains <link> style tables inside IE condition comments.
  • Checks a single page or the whole site.
  • Understands all CSS1 selectors and the most of CSS2 and CSS3 selectors.
  • Processes the main CSS hacks. For example,  “* html #foo” would be converted to “html #foo“.

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.