optimization - How to compress CSS -


i've looked @ half dozen css optimisers out there. i'm looking 1 turn:

background-image: url(../images/background.png); background-repeat: repeat-x; background-color: #c0c0c0; 

into single background property:

background: #c0c0c0 url(../images/background.png) repeat-x; 

how can this? have hand?

try http://www.cssoptimiser.com/

input:

body {     background-image: url(../images/background.png);     background-repeat: repeat-x;     background-color: #c0c0c0; } 

(i ticked "do not remove line breaks")

output:

body {     background:#c0c0c0 url(../images/background.png) repeat-x } 

note optimised away space - asked background:<space>#... :)

there may other/better tools can this, site fulfill wish.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -