On Sat, 27 Aug 2005 11:46:47 +0200, Peter Bengtsson <[EMAIL PROTECTED]> wrote:

<dtml-var "pen.tag(border='0')">

On 8/27/05, michael <[EMAIL PROTECTED]> wrote:
how can i get rid of borders around images?

as in:

<a href="/app/staff/contacts"><dtml-var pen></a>

it's been driving me mad!

...or do the proper thing, which is to add a small CSS snippet:

img { border: none; }

And you don't have to do this to every single img tag in your site.

This keeps your code cleaner, and keeps presentation where it belongs - in the CSS. Peter's tip is useful in general, though - especially setting CSS classes on img tags (you have to use the attribute css_class and not just class to not get a collision with the Python naming, though :).

--
_____________________________________________________________________

     Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________

      Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to