[Zope] IMG attributes in ZPT
Jon Whitener
wmmail@twmi.rr.com
Mon, 21 Oct 2002 09:21:46 -0400
Felix:
Thanks for the guidance. As far as the border=0 default IMG attribute, I worry that at some point, it will conflict with a stylesheet.
Thanks again,
Jon
At 10/21/02 03:49 AM, Felix Ulrich-Oltean wrote:
>On Fri, Oct 18, 2002 at 04:18:54PM -0400, Jon Whitener wrote:
>> I found in the docs about the
>>
>> tag(height=None, width=None, alt=None, scale=0, xscale=0, yscale=0, **args)
>>
>> method of an Image object, but I have no idea how to access or
>> modify that stuff.
>
><div tal:replace="structure python:here.menu_icon.tag(class='menu-icon')" />
>
>The tag() method of the image will put in height, width and alt
>itself, and also includes any arguments you give it as attributes in
>the IMG tag.
>
>
>> I'm glad the WIDTH and HEIGTH are included automagically, but how can I:
>> - Leave out the BORDER attribute? I don't know how that got in there.
>
>You can't with image_object.tag(), but border=0 is a fairly harmless
>default, isn't it?
>
>Felix.