Neir0
Neir0

Reputation: 13377

Is there a tool that converts <style> blocks into inline CSS?

Does anyone know a utility which could convert <style> blocks into the equivalent style attributes in an HTML file?

For example, we have file on input:

<html>
<head>
<style>
.myclass
{
   color:red;
}
</style>
</head>
<body>

   <span class="myclass">Some text </span>

</body>
</html>

Here’s the desired output file with inline CSS:

<html>
<head>
</head>
<body>
   <span style="color:red;">Some text </span>
</body>
</html>

Upvotes: 1

Views: 317

Answers (1)

user527892
user527892

Reputation:

Try this: http://inlinestyler.torchboxapps.com/

Upvotes: 5

Related Questions