Re: [css-d] Unwanted three pixel padding-bottom of image in div

2006-03-06 Thread Michael Williams
On 6 Mar 2006, at 02:21, Philippe Wittenbergh wrote: > Images are inline elements, and thus rest on the base-line. > Solutions: > #wrapper img {display:block;} > or > #wrapper img {vertical-align:bottom;} > > Read more in this oldie: > Images,_

Re: [css-d] Unwanted three pixel padding-bottom of image in div

2006-03-05 Thread Philippe Wittenbergh
On Mar 6, 2006, at 12:18 PM, Cem Meric wrote: > While waiting, I'll prefer your #wrapper img {vertical- > align:bottom;} advice > since #wrapper img {display:block;} may not be appropriate e.g. > http://kalkadoon.net/sandbox/three-pixel-padding/inline.html It all depends on the context, of cour

Re: [css-d] Unwanted three pixel padding-bottom of image in div

2006-03-05 Thread Cem Meric
> Images are inline elements, and thus rest on the base-line. > Solutions: > #wrapper img {display:block;} > or > #wrapper img {vertical-align:bottom;} > > Read more in this oldie: > http://developer.mozilla.org/en/docs/Images,_Tables,_and_Mysterious_Gaps/ Thank you for the link Phil

Re: [css-d] Unwanted three pixel padding-bottom of image in div

2006-03-05 Thread David Sharp
Cem Meric wrote: >> I'm stumped by an extra three pixels of padding that are appearing at >> the bottom of images I enclose in divs. >> > > The issue I believe is caused by DOCTYPE (XHTML 1.0 Strict) rules e.g. div > needs height declaration with the same value as the image in order to wrap

Re: [css-d] Unwanted three pixel padding-bottom of image in div

2006-03-05 Thread Philippe Wittenbergh
On Mar 6, 2006, at 9:36 AM, Michael Williams wrote: > I'm stumped by an extra three pixels of padding that are appearing at > the bottom of images I enclose in divs. I've reduced it to a test > case. Message continues below. (I've only been able to check in > Firefox, Camino, Safari and IE/Mac, a

Re: [css-d] Unwanted three pixel padding-bottom of image in div

2006-03-05 Thread Cem Meric
> I'm stumped by an extra three pixels of padding that are appearing at > the bottom of images I enclose in divs. In your code; http://kalkadoon.net/sandbox/three-pixel-padding/padding.html The issue I believe is caused by DOCTYPE (XHTML 1.0 Strict) rules e.g. div needs height declaration with

[css-d] Unwanted three pixel padding-bottom of image in div

2006-03-05 Thread Michael Williams
Hi, I'm stumped by an extra three pixels of padding that are appearing at the bottom of images I enclose in divs. I've reduced it to a test case. Message continues below. (I've only been able to check in Firefox, Camino, Safari and IE/Mac, as I do not have access to a Windows PC.)