Previous Message
Next Message

Header Width

Sent by CJ Larson on 1 September 2005 20:08

Wouldn't you be able to have { display: inline; clear: both; } instead
of floating them?

-----Original Message-----
> The header elements are known as "block level" elements. You can turn
them into "inline" elements to with the following style rule:
> h1, h2, h3, h4, h5, h6 {
>     display: inline;
> }

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

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

            float: left;
            clear: left;

css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread:

Possibly related: