W3C home > Mailing lists > Public > xml-editor@w3.org > July to September 1998

XML Recommendation: Accompanying CSS "errors"

From: Rev. Bob the Twice-Ordained <rev-bob@full-moon.com>
Date: Tue, 29 Sep 1998 14:01:41 -0400
Message-ID: <36112084.E39691CC@full-moon.com>
To: xml-editor@w3.org
The specification of a 4em left margin and a 2em right margin on the
BODY element via the attached style sheet causes unusual behavior for
the XML spec's tables under certain versions of Netscape, including
4.06.  As nearly as I can trace the issue, Netscape interprets the 100%
table width to be a raw value, not subtracting the left and right margin
values.  As a result, when the XML spec is viewed under Netscape 4.06
with CSS enabled, a horizontal scroll bar results due to the extra 6em
taken up by the table.

The best solution I can suggest is to define the tables in terms of
offsets and/or sub-100% widths; for instance, center the tables and
specify them to be about 90% wide instead of the full 100%.  Another
solution would be to define the margins in terms of percentages instead
of em units, then make sure the table width plus the width of all
margins and padding is 100% or less.

Yes, Netscape's browser is at fault here - but a small degree of
tweaking on your end might alleviate the rendering problem in between
bug-fixes.
 
-- 

 Rev. Robert L. Hood  | http://rev-bob.gotc.com/
  Get Off The Cross!  | http://www.gotc.com/
Received on Tuesday, 29 September 1998 14:01:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:29 GMT