css - How to use VML to allow background-image in Outlook with HAML? -
I am formatting an e-mail digest using HAML and tables. I want to be able to set a background-image on a table-cell in my e-mail, but I have come to know that in order to show the background image in Outlook, I have to use something named VML.
I found this:
& lt ;! - [if gte mso 9]> gt; & Lt; V: React style = "width: 540px; height: 150px;" Strokecolor = "none" & gt; & Lt; V: fill type = "tile" color = "# 363636" src = "http://www.website.com/background.png" /> & Lt; / V: fill & gt; & Lt; / V: rectangular & gt; & Lt; V: figure id = "name here" style = "position: full; width: 540px; height: 150px;" & Gt; & Lt; [Endif] - & gt;
But I do not know how to do it in Ham, if I can do it too. Can someone make me out of here?
Html :
, so that you can use the normal Hubble syntax: < / P>
/ [if gte mso 9]% v: rect (style = "width: 540px; height: 150px;" strokecolor = "none")% V: fill (type = "tile" color = "# 363636" src = "http://www.website.com/background.png")% V: size (id
>
gt; & Lt; V: rect strokecolor = 'none' style = 'width: 540px; Height: 150px; ' & Gt; & Lt; V: fill color = '# 363636' src = 'http: //www.website.com/background.png' type = 'tile' & gt; & Lt; / V: fill & gt; & Lt; / V: rectangular & gt; & Lt; V: figure id = 'name here' style = 'position: complete; Width: 540 pixels; Height: 150px; ' & Gt; & Lt; / V: shape & gt; & Lt; [Endif] - & gt;
Comments
Post a Comment