[thelist] CSS <img> border problem

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Thu Feb 3 10:58:05 CST 2005


Alan,

   Seems like an IE oddity, but I could be wrong.

   What happens in FF if you wrap it in a span with this class rather than applying the class to the image?  This works in IE (and I thought FF/Moz was more sticky about doing stuff like this with images).

Peter

 From: Alan McCoy a.r.mccoy at larc.nasa.gov

Okay, the solution to this is probably so simple it hurts, but here goes...

I'm trying to get a thumbnail image to display with a solid 1px border,
but with 3px of padding between the image and the border. Here's the CSS:

...and the  tag code:

In Firefox the style works fine...1px border with 3px padding inside.
But in IE 6.x, the padding is missing, making the border hug the image.

How can I make this work in IE?

Thanks in advance!

Alan


More information about the thelist mailing list