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

Re: width of content+padding versus border+margin

From: Chris Croome <chris@webarchitects.co.uk>
Date: Fri, 15 Dec 2000 17:15:01 +0000
To: www-style@w3.org
Message-ID: <20001215171500.B26864@webarchitects.co.uk>
Hi Roger

This is a bit of a hack but it should/might work:

h2 span {
background: #066;
padding: 3pt;



On Fri 15-Dec-2000 at 11:43:15 -0500, Roger Watt wrote:
> (PS: I get the desired content/background effect by declaring the H2
> to be "inline" instead of "block", but I want a block-mode heading.)

That's the crux of the matter, you want a inline style background on a
block level element!


Chris Croome <chris@webarchitects.co.uk>
work: http://www.webarchitects.co.uk/
play: http://chris.croome.net/

Received on Friday, 15 December 2000 12:14:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:56 UTC