Sent by Roger Roelofs on 4 February 2005 11:11
Tom,
On Feb 4, 2005, at 4:21 AM, Tom wrote:
> Can I some how specify that the width of a header is only as wide as
> its
> content?
No, but you can fake it with this semi-ugly code
<h1><span>Hi There</span></h1>
h1 span {
background-color: black;
color: white;
}
Elements (like spans) that are display: inline; will appear to
'shrink-to-fit.' However not all box attributes work on inline
elements, so it really depends on what you want to do.
hth
Roger,
Roger Roelofs
Know what you value.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/