W3C home > Mailing lists > Public > www-style@w3.org > January 2001

Re: Netscape 6 - SPAN - attributes - HELP

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Fri, 19 Jan 2001 13:52:38 -0500 (EST)
Message-Id: <200101191852.NAA27124@is04.fas.harvard.edu>
To: sgove@frametech.com, www-style@w3.org
On Fri, 19 Jan 2001 13:18:54 -0500, Sheridan Gove (sgove@frametech.com)
wrote:
> STYLE type="text/css"
> 	#Button0{width: 75; height: 25; margin-bottom: 5;}
> 	#Button1{width: 75; height: 25; margin-bottom: 5;}
> 	#Button2{width: 75; height: 25; margin-bottom: 5;}
> /STYLE
> 
> In IE all these attributes are recognized. In NS6 however none of them are
> recognized. NS6 will recognize margin-left and margin-right. If margin only
> is set then only left and right are effected.

There are two problems here:

1. Lengths in CSS are required to have units.  Implementations are
   required to reject lengths without units.  (Netscape 6 and Mozilla
   do this in standard mode, but not in quirks mode.)  See CSS2
   sections 4.2 and 4.3.2.

2. Inline non-replaced elements (such as SPAN is by default) are not
   affected by the width (see CSS2 section 10.3.1), height (see CSS2
   section 10.6.1 and 10.8), or margin-bottom or margin-top
   properties (see CSS2 section 10.8, which explains how vertical
   positioning within the line is done using font-size, line-height,
   and vertical-align).

-David

L. David Baron        <URL: http://www.people.fas.harvard.edu/~dbaron/ >
Mozilla Contributor                      <URL: http://www.mozilla.org/ >
Invited Expert, W3C CSS WG          <URL: http://www.w3.org/Style/CSS/ >
Received on Friday, 19 January 2001 13:52:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:07 GMT