Don't think this has been mentioned but you could also use something
like:
h1 strong { background: #000000; }
<h1><strong>This is your heading</strong></h1>
Then, only the words will have the background and not the whole line.
On Dec 25, 2005, at 9:10 PM, [EMAIL PROTECTED] wrote:
> I want to make an H1 element to have the text enclosed in a colored
> box
> with text colored white, but the box extends 100% of the available
> area.
> How do I get the box to just wrap tightly around the text?
>
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/