Bill Lee wrote:
> 
> First, please don't say you're not supposed to layout pages with tables.
>   The entire web does it.

You are not supposed to do it if you use XHTML or HTML 4
strict. You can still do it, but then you must explicitly
say that you want such behavior, e.g. with
"IMG { display: block}".

> Question: Why does Moz stretch out tables (vertically)?

Because Mozilla respects the CSS2 spec if in standards mode.
See http://bugzilla.mozilla.org/show_bug.cgi?id=22274 and
http://www.w3.org/TR/REC-CSS2/visudet.html#line-height :

  [line-height]
  If the property is set on a block-level element whose
  content is composed of inline-level elements, it specifies
  the minimal height of each generated inline box.

The initial value for line-height is "normal":

  [normal]
  Tells user agents to set the computed value to a
  "reasonable" value based on the font size of the element.
  The value has the same meaning as <number>. We recommend
  a computed value for 'normal' between 1.0 to 1.2.

The font size is inherited from the surrounding element.

> I.E. and N4.x
> keep tables nice and tight just like you lay them out.  Moz adds all
> kinds of white spece below your text.  This is really sucky.  Is there a
> trick to fixing this?

You can trigger quirks mode by omitting the URL within a
HTTP 4 transitional doctype declaration.
See http://bugzilla.mozilla.org/show_bug.cgi?id=42525 .
AFAIK the summary at the bottom of that bug does still
apply.

Maybe the strict reading of the CSS2 line model should not
apply to HTML 4 *transitional* documents, but then we'd
need a third layout mode because we do not want all the
other quirks with every transitional doctype.

Clarence


Reply via email to