Hi,
I'm looking for a tool which uses the CSS selectors within a stylesheet to generate the selected inline style.
E.g :
<head>
<style text="text/css">
a {
text-decoration: none;
}
#a, #b, #c
{
position: absolute;
}
#b
{
left: 50px;
}
</style>
</head>
<body>
<div id="a">
<p>
<a href="http://www.stackoverflow.com">SO</a>
</p>
</div>
<div id="b">
</div>
<div id="c">
</div>
</body>
will be :
<body>
<div id="a" style="position: absolute">
<p>
<a href="http://www.stackoverflow.com" style="text-decoration: none;">SO</a>
</p>
</div>
<div id="b" style="position: absolute; left: 50px;">
</div>
<div id="c" style="position: absolute">
</div>
</body>
Any ideas ?!
EDIT :
I want to do that to be able to 'style' email in most email client, especially for gmail, which doesn't support external or even internal stylesheet.