Previous Message
Next Message

padding image does not show in WINIE6

Sent by Pawel Knapik on 11 March 2005 21:09


On Fri, 11 Mar 2005 21:38:21 +0100, Jan DeVries [EMAIL-REMOVED]> wrote:
>   Hi,
> I am trying to add a few px padding to a images to offset the border a
> bit from the image like so
> img {padding: 4px; border: 1px solid silver;}
> that works well on Mac in Saf en IE but the padding does not show in
> WINIE5&6....
> Is this a well known bug or am i doing something wrong?
> Jan

Padding for images works in win IE6 standards mode, so probably you
are testing it in IE6 quirks mode.
Earlier versions of Explorer use incorrect box-model, and padding is
added inside the block element. If switched to stanards mode Explorer
6 will render your style as intended.

Here's something about doctype switching:
http://www.ericmeyeroncss.com/bonus/render-mode.html

Pawel.

> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: