tags:

views:

425

answers:

5

I am working on a CSS file that is a total mess right now and wanted to clean it up, take a look:


...
solid;border-collapse:collapse!important}.account_table_top_text{padding:5px 0 5px 10px}.account_table_header_text{font-family:Arial,Helvetica,sans-serif!important;font-weight:bold;font-size:16px;color:black}.account_add_account_link{cursor:pointer;text-
...

Anyway you got the idea, is there a good tool to clean up CSS files? I just want the file much much cleaner and readable.

+6  A: 

I always run messy CSS through this online tool. It works wonders for unformatted CSS.

Dan Walker
Wow, great site, it works wonders on really messed up CSS files!
Daniel
Cool! Thanks for recommending my tool. I'm actually the guy who made it. Neat to come across this.
LonnieBest
+1  A: 

http://www.prettyprinter.de/

The Pixel Developer
+1  A: 

Online tool available here:

http://www.cssdrive.com/index.php/main/csscompressor/

Comparison of various solutions here:

http://idoblogging.wordpress.com/2007/02/10/comparison-css-cleanupcompressoptimizer-tools/

Jon
A: 

If you're working in Visual Studio (which you might or might not be - I am fully aware that this might not be the case...) pressing

[Ctrl]+[K] - [Ctrl]+[D]

will organize any file for you (css, html, c#, vb.net, xml...).

Tomas Lycken
A: 

Try ProCSSor

Nimbuz