You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Mark Stephens <ma...@yahoo.com> on 2007/10/11 20:06:31 UTC

css in mail

I'm trying to get a css include working in my mail template.  Images work just fine and show up in gmail but the css include doesn't seem to be working.  I even took the template and put it on my web server as a normal html file and that works great.  I know the include line below is correct.

Is there trick to using css in e-mail besides just using a link like this:

 <head>
        
    </head>





Re: css in mail

Posted by Gonzalo Diethelm <go...@diethelm.org>.
Watch for the Velocity comment marker, #, which in CSS has a different
meaning...

On Thu, 2007-10-11 at 11:06 -0700, Mark Stephens wrote:

> I'm trying to get a css include working in my mail template.  Images
> work just fine and show up in gmail but the css include doesn't seem
> to be working.  I even took the template and put it on my web server
> as a normal html file and that works great.  I know the include line
> below is correct.
> 
> Is there trick to using css in e-mail besides just using a link like
> this:
> 
>  <head>
>         
>     </head>
> 
> 
> 
> 


-- 
Gonzalo Diethelm
gonzalo.diethelm@diethelm.org

Re: css in mail

Posted by Robert Koberg <ro...@koberg.com>.
Hi,

Put the CSS directly in the HTML HEAD.

Also, even though you are seeing images in your gmail reader, chances
are many people will not see them unless you inline them. Search for:
java inline images email - or something like that.

best,
-Rob

On Thu, 2007-10-11 at 11:06 -0700, Mark Stephens wrote:
> I'm trying to get a css include working in my mail template.  Images work just fine and show up in gmail but the css include doesn't seem to be working.  I even took the template and put it on my web server as a normal html file and that works great.  I know the include line below is correct.
> 
> Is there trick to using css in e-mail besides just using a link like this:
> 
>  <head>
>         
>     </head>
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org