Hello all, I'm looking for an application that will do various administrative CSS tasks like check for duplicate entries/selectors and generally clean thigns up (similar to Dreamweaver's Apply Soruce Formatting option). I have a very large CSS file that needs some help and it would be great if such an application exists. Any help would be greatly appreciated.
Thanks!Not to be "that guy," but do a google search for css optimizer Won't the w3c validator output work for that?http://www.w3.org/Amaya/
<!-- m --><a class="postlink" href="http://jigsaw.w3.org/css-validator/Won't">http://jigsaw.w3.org/css-validator/Won't</a><!-- m --> the w3c validator output work for that?
It could help, but he also might be talking about combining like property declarations into short-hand declarations. Like if there are a whole bunch of border-* properties that could be condensed into border: [width] [style] [color]; For that I don't think the W3C's CSS validator works.
Honestly, that's up to the author You should be keeping track of the styles you write, condense where necessary and use classes properly when you've got common styles.
I'm pretty anal retentive when writing style sheets. I always write my declarations in alphabetical order, and then within the declarations I write the properties in alphabetical order. Keeps things tidy and makes it easy to find certain declarations.
Thanks!Not to be "that guy," but do a google search for css optimizer Won't the w3c validator output work for that?http://www.w3.org/Amaya/
<!-- m --><a class="postlink" href="http://jigsaw.w3.org/css-validator/Won't">http://jigsaw.w3.org/css-validator/Won't</a><!-- m --> the w3c validator output work for that?
It could help, but he also might be talking about combining like property declarations into short-hand declarations. Like if there are a whole bunch of border-* properties that could be condensed into border: [width] [style] [color]; For that I don't think the W3C's CSS validator works.
Honestly, that's up to the author You should be keeping track of the styles you write, condense where necessary and use classes properly when you've got common styles.
I'm pretty anal retentive when writing style sheets. I always write my declarations in alphabetical order, and then within the declarations I write the properties in alphabetical order. Keeps things tidy and makes it easy to find certain declarations.