Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a good CSS cleanup tool? [closed]

Tags:

css

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.

like image 429
Daniel Kivatinos Avatar asked May 20 '09 22:05

Daniel Kivatinos


People also ask

What is Cleancss?

Clean-css is a fast and efficient Node. js library for minifying CSS files. According to tests it is one of the best available.


5 Answers

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

like image 178
Dan Walker Avatar answered Oct 04 '22 02:10

Dan Walker


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/

like image 26
Jon Avatar answered Oct 04 '22 00:10

Jon


Try ProCSSor

like image 33
eozzy Avatar answered Oct 04 '22 02:10

eozzy


http://www.prettyprinter.de/

like image 39
The Pixel Developer Avatar answered Oct 04 '22 00:10

The Pixel Developer


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...).

like image 38
Tomas Aschan Avatar answered Oct 04 '22 02:10

Tomas Aschan