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;
}

<h2><span>Heading</span></h2>

Chris

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

-- 
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 GMT

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