W3C home > Mailing lists > Public > www-style@w3.org > December 2000

Re: width of content+padding versus border+margin

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 15 Dec 2000 13:29:57 -0800 (Pacific Standard Time)
To: Matthew Brealey <webmaster@richinstyle.com>
cc: www-style@w3.org
Message-ID: <Pine.WNT.4.21.0012151327190.972-100000@HIXIE.netscape.com>
On 15 Dec 2000, Matthew Brealey wrote:
>> 
>> <style>
>>   span {
>>     display:inline;
>>      background: #066; padding: 3pt;
>>   }
>> </style>
>> 
>> <H2><span>content</span><H2>
> 
> That won't work. Only the text is coloured of inline text - not its padding. 

For the record, that's not true, per CSS2, 14.2, sentence 2.

Steve's solution would work fine.

-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________
Received on Friday, 15 December 2000 16:25:44 GMT

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