CSS Intelligent Merger

Posted by BHare on Pro Webmasters See other posts from Pro Webmasters or by BHare
Published on 2011-02-24T23:04:14Z Indexed on 2011/02/24 23:34 UTC
Read the original article Hit count: 522

Filed under:

I am looking for a tool very similar to http://www.tothepc.com/archives/combine-merge-multiple-css-files/

However, given this example:

test1.css:

#admin {
    background: #c9d2dc;
    border-color: #ccc
}

test2.css:

#admin {
    background: #222;
    border-bottom: 1px solid #444;
    border-left: 1px solid #444;
    padding: 2px;
    position: fixed;
    right: 0px;
    top: 0px;
    width: 120px;
    z-index: 2
}

It will only allow you to select one or the other. I want to merge them, making it:

#admin {
    background: #c9d2dc;
    border-color: #ccc
    border-bottom: 1px solid #444;
    border-left: 1px solid #444;
    padding: 2px;
    position: fixed;
    right: 0px;
    top: 0px;
    width: 120px;
    z-index: 2
}

© Pro Webmasters or respective owner

Related posts about css