[Zope] Re: lines around images as links

Alexander Limi limi at plone.org
Sat Aug 27 11:33:57 EDT 2005


On Sat, 27 Aug 2005 11:46:47 +0200, Peter Bengtsson <peterbe at gmail.com>  
wrote:

> <dtml-var "pen.tag(border='0')">
>
> On 8/27/05, michael <michael at tropolinux.com> 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



More information about the Zope mailing list