[ZPT] Nesting a Tag in CSS

Jeffrey P Shell jeffrey@cuemedia.com
Wed, 9 Oct 2002 08:33:26 -0600


On Tuesday, October 8, 2002, at 09:32  PM, Richard Jones wrote:

> 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.

Actually,  DTML is fairly well suited to plain text situations.  ZPT 
intends ONLY to be an XML/HTML based language.  But DTML is still 
decent for things like SQL Methods and dynamic CSS generation.