Вопрос

I am refactoring legacy code of MVC framework html views. Many, many, many css styles are applied inline, which is bad practice.

Is there a tool to generate a css file from all the inline styles of an html file ?

Это было полезно?

Решение

The answer can be found here: Generating a stylesheet based on inline HTML styling? I couldn't post it as an answer, because it told it was too trivial for an answer. Maybe now after I added few more lines it will take it as an answer.

Другие советы

I believe you're looking for Inline CSS Extractor, their website is down, but github have the zip file, download it and open it in your local, I believe that will save you loads of time too.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top