Blog anything about

computer tips and tutorials. The power on your side..

Have you ever wondered how you could search for unused classes/ ids in your cascading stylesheet file (.css) so that you can minimize the size of the file for faster website loading?

This Firefox extension will be handy to web designers working with CSS on daily basis to design their websites. Dust-me-selectors extension let you search for unused CSS selectors by scanning the source of the current HTML page you’re viewing and matched it with the stylesheet.

  • Install it in your Mozilla Firefox, restart the internet browser, go to the url of your website, and press Alt+Ctrl+F to start the scanning. If it found anything that is unused is present in the css file, it will give out the list of them like below:

  • That applied to one html page only so if you’re using more than one html pages with different style used, you will need to scan each one of them to get the job correctly done. Instead of pressing Alt+Ctrl+F, select automation from the extension context menu start to browse around the site.
  • The data you gathered just now will be stored temporary, so that as you continue to browse around the website, selectors will be canceled automatically from the list as they encountered.

You will end up with a profile of which selectors are not used anywhere on the site.


Comments (4)Posted by Super Admin on Thursday, September 6th, 2007

Related Entries

  • Clean your Windows registry and hard disk
  • Using Google For Searching Ebooks
  • Search Megaupload for files
  • 4 Responses to “Search unused CSS selectors in CSS file” Add your own

    Post A Comment

    Tag and more tags for this post



    Disclaimer: The owner of this blog will not be responsible for the outcome of the usage of the contents
    in this blog. Certain posts may not be relevant in the future and the owner can only guarantee that
    the posts were accurate as they are supposed to be at the time the post were first published.