Re: ZPT and inline CSS (";" char)
Tres Seaver <[email protected]> Fri, 08 Dec 2006 14:42:31 -0500
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mihamina Rakotomandimby wrote:
> Hi,
> When wanting to do some inline CSS, I sometimes have to do:
>
> <div style="font-family:foo; padding:20px;">
> ...
> </div>
>
> How to make that using tal:attributes? the ";" are genrating errors.
> Backslash does not escape the ";".
Double the semicolon to escape it, e.g.:
<div
tal:attributes="style string:font-family:${family};; padding:20px;">
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 [email protected]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFecAm+gerLs4ltQ4RAtZ3AKCtRhYwR0eCwWXK/nbUYI5VyTAaLgCdF+d1
ZpHRnCwxphyhpFlUnxh7zj0=
=gW4q
-----END PGP SIGNATURE-----