views:

39

answers:

3

Really annoying situation, and maybe there is an easier solution.. but I basically have a simple table I have styled in the general format:

<style type="text/css">
  table.master_table {
    ... global table styling
  }
  .master_table td {
    ... master table td styling
  } 
  .master_table td.dv {
    ... td dv style
  }
  .. more styling
</style>

<table class="master_table">
  <tbody>
 <tr>
   <td class="dv">
     .. nothing special
 </tr>
  </tbody>
</table>

Now the problem is the server doesn't support the "style" element so I need to manually apply the style to each level i.e.:

<table style="... global table styling">
  <tbody>
 <tr>
   <td style="td styling;td dv style">
     .. nothing special
 </tr>
  </tbody>
</table>

Is there any programs that can do this? Or is there any easier way to do this? I basically have a Wordpress.com blog that looks beautiful, in Live Writer because of some custom styling but as soon as I post, it strips out the style block. As a test I went through an manually did some of the above and it works, its just insanely painful and error prone.

A: 

There is a plugin called Art Direction which lets you add custom css on a per post basis. If you use this style on several different pages you should add the styles to a global stylesheet.

adamse
I dont think this is an option if you let wordpress.com host.I think they make this painful so you pay for the "custom css" upgrade. They allow you to preview style just not apply it. So i took my "style" block put it in the css layout and it works.. ;(
Nix
Aw, that sucks, but still, you have semi-solved the problem!
adamse
I haven't. Debating writing something to do it (calculate style and apply to html element style attribute), or just pay the 15 dollars.
Nix
Aha, I misunderstood.
adamse
A: 

if you are on wordpress.com i do not think you can control the css or anyother file.

you have to host your own wordpress.org blog to customize your theme.

acrobat
A: 

So I found an online solution called "emogrifier"

Works well, all you have to do is enter css, then enter html and it will output inline styles.

Nix