At 10:11 AM 9/1/2005, Mr. Kim Siever wrote:
By default, a header element seems to take up the entire width of a
page (or containing element). Does anyone know if there is a way in
CSS to reduce the width to be only that of the actual width of the
text?


Kim,

Another way (besides making them inline) is to float them right or left. Floated block elements shrink to the size of their contents. Then, of course, you need to cancel the float with the next element on the page so that it doesn't align next to the headline:

        <h1>Headline</h1>
        <p id="byline">by Writer</p>

        h1
        {
           float: left;
        }
        p.byline
        {
           clear: left;
        }

Paul
______________________________________________________________________
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/

Reply via email to