Loading...

velocity-user@jakarta.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

set directive and CSS syntax Timothy Stone Mon Nov 06 12:00:26 2006

So we have set a bunch of variables to use as inline CSS directives in HTML emails.

For example:

#set( $div_header = "height: 125px; padding: 0 10px 0 0; color: #13aaf3; background: white url('${IMAGE_SERVER}/path/to/image') top left repeat-x; font-size: 18px;")

Note that the "url" is single quoted. I noted this was a problem and removed them, leaving:

#set( $div_header = "height: 125px; padding: 0 10px 0 0; color: #13aaf3; background: white url(${IMAGE_SERVER}/path/to/image) top left repeat-x; font-size: 18px;")

This did not seem to correct the problem we are having and I'm attributing it to the
"url(${IMAGE_SERVER}/path/to/image)" portion itself.

Is Velocity misinterpreting the url() call as a VM, or something else?

Thanks,
Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]