CSS renders elements using a box model, that has a margin, border,
padding and content area. Your image is displayed in the content area.
Safari calculates the box correctly, while IE Mac (and IE Win) does not.
Your seeing the effect of IE's incorrect calculation, since your style
rule specifies padding, as well as width and height.
IE is deducting the padding from the content area, thereby reducing the
height and width of the content area, where your image is displayed. So
IE is using a height of 156px (= 186 - 15px top -15px bottom) to
display the image. That is why a portion of the images top and bottom
is missing.
If you remove the padding, then Safari and IE should both display the
same way.
Here's one I don't understand. The following code does exactly what I
want it to in Safari, displays a graphic, but in IE (Mac - haven't
tested it in IE PC yet.), the right and bottom sides of the graphic
are missing -- chopped off for some reason. Does any one have any
ideas. I have to admit, I'm a little new at CSS. I'm starting a site
and am toying with the idea of doing it all in CSS. Thanks, again, for
you help.
Mark
-------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.