[ZPT] Re: ZPT and inline CSS (";" char)
Tres Seaver
tseaver at palladion.com
Fri Dec 8 14:42:31 EST 2006
-----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 tseaver at palladion.com
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-----
More information about the ZPT
mailing list