Hi Guys,
First post here.
I have a task that I need to complete which seems difficult and I wondered if anyone might know of a better method than what I can come up with.
I need to consolidate 2 very large CSS files (old and new) in to one file. I therefore need to search for any repeated styles and merge them in to one. My issue with this is that if the old css file has the style that the new css file has then I would obviously need to change the name of the style in the HTML which could have massive implications on the site that uses the style sheet.
I hope I’ve explained things properly and I’ll elaborate more if needed. I basically want a program that’s going to do it all for me but I doubt there is such a wondrous device….failing that it’s going to be a long a tedious task!
:rolleyes:
Can you tell me that where u r using these scc. in dot net nuke or in other?[/QUOTE]
html,body{foo:bar;value;foo:bar:value}body{foo:bar;value;foo:bar;value}wrapper,left{foo:bar;value;foo:bar;value}outer{foo:bar;value;foo:bar;value}inner{foo:bar;value;foo:bar;value}...etc etc etc...[/QUOTE]What you WANT, is this:
...etc etc etc... or something closely resembling this second example.. MUCH easier to read/edit. It is only when you are 100% completely, fully and unequivocably DONE with the CSS (and even then, -only if you want to, to save that additional few K?, would you option to 'remove unnecessary whitespace'.
html, body {
foo:bar;value; foo:bar;value
}
body {
foo:bar;value; foo:bar;value
}
wrapper, left {
foo:bar;value; foo:bar;value
}
outer {
foo:bar;value; foo:bar;value
}
inner {
foo:bar;value; foo:bar;value
}[/QUOTE]
Webjoel,
A nice reply, thanks.
Consolidating the two css files and then copying them in to an optimizer was exactly what I tried this morning. However, I made the mistake of removing all white space so ended up with something like the one in your example of how not to do things....
Anyway, I still have the CSS files so no major problems. I'm a little unsure as to how these optimizers work but I'll give it another go and let you know how I get on.
Much appreciated so far...[/QUOTE]
0.1.9 — BETA 5.20