Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

with CSS so Mozilla does display images in a table without spacings in non-quirk mode (i.e. with DTD statement)?.

0
Posted

with CSS so Mozilla does display images in a table without spacings in non-quirk mode (i.e. with DTD statement)?.

0

This is another issue altogether. 1. According to one interpretation of CSS2, the line-height (default or otherwise) of a parent block level element specifies a ‘minimal’ line height for any inline content [3]. And since IMG is an inline element, it will have a line-height of at least that of it’s parent. This is how Mozilla works in ‘standards (i.e. non-quirks) mode’. If the image is smaller than the line-height, then there will be space above the image. However, this is normally only a problem for very small images, and can be got round by specifying a line-height of zero on the parent element. 2. Inline elements are by default vertically aligned on the baseline of a line box [4], which is again what Mozilla always does in ‘standards mode’. IE, on the other hand, if the block element contains only inline replaced elements (e.g. IMGs), will by default align them with the bottom of the line box.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.