RE: [Zope] tal:attributes question
Ok. Yeah I forgot about that. Thanks, Laura -----Original Message----- From: Fred Drake [mailto:fdrake@gmail.com] Sent: Friday, October 01, 2004 2:05 PM To: Laura McCord Cc: zope@zope.org Subject: Re: [Zope] tal:attributes question 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
Laura McCord wrote:
Ok. Yeah I forgot about that.
Thanks, Laura
-----Original Message----- From: Fred Drake [mailto:fdrake@gmail.com] Sent: Friday, October 01, 2004 2:05 PM To: Laura McCord Cc: zope@zope.org Subject: Re: [Zope] tal:attributes question
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
do you know XHMTL and CSS? I think these "style" attribute would be better in a css file... Cheers!
On Mon, 04 Oct 2004 01:37:53 +0200, Garito <garito@sistes.net> wrote:
do you know XHMTL and CSS? I think these "style" attribute would be better in a css file...
Well, one answer to the question is that it's possible to do a computed attribute that contains semi-colons in this way. Another is to stick some class attributes on things, and generate an additional or alternate class name for each variation of the style attribute, and then sticking the styling there. I tend to do the later, but I don't know all the details of Laura's problem, so which is appropriate for her, I'll leave to her to decide. ;-) -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> Zope Corporation
Fred Drake wrote:
On Mon, 04 Oct 2004 01:37:53 +0200, Garito <garito@sistes.net> wrote:
do you know XHMTL and CSS? I think these "style" attribute would be better in a css file...
Well, one answer to the question is that it's possible to do a computed attribute that contains semi-colons in this way. Another is to stick some class attributes on things, and generate an additional or alternate class name for each variation of the style attribute, and then sticking the styling there. I tend to do the later, but I don't know all the details of Laura's problem, so which is appropriate for her, I'll leave to her to decide. ;-)
-Fred
Hi Fred! My message is for Laura, not for you! ;-) Perhaps I send you the message instead of to the list? (If so, Sorry!!!) See you!!
On Mon, 04 Oct 2004 16:10:44 +0200, Garito <garito@sistes.net> wrote:
My message is for Laura, not for you! ;-) Perhaps I send you the message instead of to the list? (If so, Sorry!!!)
Your message went to the list. I just wanted to explain that there are two different approaches to answering the original question. Being so involved in the TAL implementation, I have a tendency to see such questions as TAL questions first, rather than general web development questions. But I agree with you on the matter of using CSS for style wherever possible. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> Zope Corporation
Fred Drake wrote:
On Mon, 04 Oct 2004 16:10:44 +0200, Garito <garito@sistes.net> wrote:
My message is for Laura, not for you! ;-) Perhaps I send you the message instead of to the list? (If so, Sorry!!!)
Your message went to the list. I just wanted to explain that there are two different approaches to answering the original question. Being so involved in the TAL implementation, I have a tendency to see such questions as TAL questions first, rather than general web development questions.
But I agree with you on the matter of using CSS for style wherever possible.
-Fred
Aha, sure! I think would be better if I make a "base" mistake you correct me, but your response is TRUE! A mistake for me could be a good choice for other Thanks!
participants (3)
-
Fred Drake -
Garito -
Laura McCord