[ZPT] Nesting a Tag in CSS

Richard Jones rjones@ekit-inc.com
Wed, 9 Oct 2002 13:32:18 +1000


On Wed, 9 Oct 2002 8:42 am, beno wrote:
> Hi;
> How would I accomplish the following in a way that will perform the
> substitution that I want?
>
> <style type="text/css">
>   .headline { position: absolute;
>     top: <p tal:content="python:here.sizeCalc2(50,here.size(None,
> here))"/>; }
> </style>

TAL is disabled inside <style> and <script> tags intentionally - all sorts of 
problems arise otherwise. You're best to template your CSS in python or (ick) 
DTML.


    Richard