Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6797413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:36:23+00:00 2026-05-26T18:36:23+00:00

Our web site has been under a constant development for a better part of

  • 0

Our web site has been under a constant development for a better part of the last five years. As it happens, pretty much all the styles for the site are in one big CSS file. With time this css file has grown to about 9,000 lines – and I’m sure some of those styles are not used any more and quite a few styles provide duplicate functionality.

The site is written with PHP/Smarty; there are over 300 smarty templates and the whole site contains over 1000 different pages (read – unique URLs). I’m sure it will continue growing – as will the CSS file.

What’s the best way to clean up this file?

Update: Unfortunately, online parsers where I put in a URL won’t work for me, as 75% of the site is behind username/password logins – and depending on login, there are half a dozen different roles, each of which has their own set of of pages. There are also transactional elements (online shop), where the pages are displayed after (for example) credit card payment is taken/processed. I doubt that any online tool would be able to handle any of these. Therefore if there’s a tool, it would have to work on a source tree.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:36:24+00:00Added an answer on May 26, 2026 at 6:36 pm

    Short of going through each .tpl file and searching the file for the selectors manually, I don’t see any other way.

    You could of course use Dust-Me selectors, but you’d still have to go through each page that uses the .tpl files (not each url as I know that many of them will be duplicates).

    Sounds like a big job! I had to do it once before and I did exactly that, took me a week.


    Another tool is a Firebug plugin called CSS Usage. As far as I read it can work across multiple pages but might break if used site-wide. Give it a go.


    Triumph! Check out the Unused CSS online tool. Type your index url into the field and voila, a few minutees later a list of all the used selectors 🙂 I know you want the unused ones, but then the only work is finding the unused ones in the file (ctrl+f) and removing them 🙂

    Make sure to use the 2nd option, they’ll email you the results of the crawl of your entire webpage. Might take up to half an hour, but that’s far better than a week. Take some coffee 🙂

    Just tested it, works a treat 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently our site has been deluged with the resurgence of the Asprox botnet SQL
I am working on a web app project that has been in development for
We manage our web development using SVN. On one project, we deployed the site
On our web site, users enter free form text like Ribeye steak at Safeway
A section of our web site calls for asking the user 20 multiple-choice questions
Couple of months ago, we revamped our web site. We adopted totally new site
I need to offer scheduling of actions/events, in our web site. A crap analogy
I've been converting some .net Web Sites to Web Applications. This has been going
Our website has been using IIS6 for a long time. We test on IE8,
We have a site which integrates Java web apps under Tomcat with ASP pages,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.