Thierry Koblentz wrote: > I think you'd have better result across browsers if you were using > margin instead of padding.
Yes, it's an old problem that browsers haven't implemented padding properly for img elements. However, IE 8 implements it, but only in "standards" mode. If your document is not rendered in that mode, there's a large number of quirks that may affect the browser's behavior; probably the largest, yet incomplete, list of such quirks is available at http://www.cs.tut.fi/~jkorpela/quirks-mode.html Although it is safer to use margin instead of padding for img elements, note that there's a difference: the margin has the color of the background of the enclosing element, whereas the padding (when supported) has the color of the background of the img element itself. -- Yucca, http://www.cs.tut.fi/~jkorpela/ ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
