I have this: style="position:absolute;left:180;top:25;z-index:1;visibility:hidden;" I need to make 'top' change after each iteration. So, I have a little python operation called position that will return a new value and I want to make 'top' contain that value. My tal:attributes... looks like this => tal:attributes="id string:${box}" I was thinking about tweaking the tal:attributes to include 'style' <div tal:attributes="id string:${box}; style string:position:absolute;left:180;top:${position};z-index:1;visibility:h idden;"> Of course, this won't work merely because of all the semicolons. Does anyone have an idea of how I would go about this? Maybe my approach is not the best way. Thank You, Laura
On Fri, 1 Oct 2004 13:56:38 -0500, Laura McCord <laura.mccord@doucet-austin.com> wrote:
Of course, this won't work merely because of all the semicolons.
You can replace each semi-colon with two semi-colons to actually get a semi-colon out: <div tal:attributes=" id string:${box}; style string:position:absolute;; left:180;; top:${position};; z-index:1;; visibility:hidden;;" > ... </div> -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> Zope Corporation
participants (2)
-
Fred Drake -
Laura McCord