tags:

views:

225

answers:

4

I am working on a site which is full of inline css. Is there a tool to automatically refactor the pages so that inline css is moved to an external css file? Preferably doing this in a smart way where it doesn't create duplicate css declarations so if I have two inline css like style="left-padding; 12px", it creates one css class instead of two?

Adobe Dreamweaver can do this manually one inline css at a time. I prefer a tool to do all the work in one shot.

+1  A: 

After a quick Google session, it seems that Dreamweaver CS3 can refactor inline css to an external css file.

TeeBasins
I already mentioned this. It does it one at a time.. manually.
Tony_Henrich
Oops, must've missed that part of your question. Apologies.
TeeBasins
+1  A: 

I searched like forever, and.. i found this:

Inline-to-external-css-extractor

http://www.voodoobytes.info/humbles-tools/

I used it but it seems to miss some styling code. I probably need to test it better... Hope it helps you though Good Luck 4 everything

al
Thanks for looking but it doesn't work well to be useful
Tony_Henrich
A: 

TopStyle handles this really well.

DrydenMaker
I don't see the option. Where is it?
Tony_Henrich