Over the years that my website has been in existence I have made lots of improvements and changes to the sites design. The only problem is my CSS file now has around 5000 lines of code. My website is static and only has around five pages total so I know that there is some elements/code I can delete from my CSS file. I would like to know if there is any sort of program that can automatically find the code in my CSS file that isn't used in my website so that I can delete the extra? Right now it is just getting way to hard to difficult my CSS file so I would really like to do some spring cleaning on it, I just don't want to start deleting lines of code and accidentally delete something important. Thanks, Ty
Yeah, there are heaps. You can find websites, browser plugins, and standalone tools that clean up CSS. Search for "CSS cleanup" and you will find many like these: http://csstidy.sourceforge.net/ http://www.cleancss.com/ http://www.sitepoint.com/dustmeselectors/