Previous Message
Next Message

Header Width

Sent by Paul Novitski on 1 September 2005 20:08

At 12:05 PM 9/1/2005, CJ Larson wrote:
>Wouldn't you be able to have { display: inline; clear: both; } instead
>of floating them?


If you use {display: inline} to shrink the headline to its minimum width, 
you wouldn't need to use {clear: both;} -- unless some other element on the 
page began a float you needed to clear.  Making an element inline does not 
initiate a float that needs to be cleared.

I was mentioning floating as an alternative method of shrinking blocks not 
because I thought it was preferable to inline display but because I wanted 
the original poster to have more resources at his disposal in trying to 
solve his problem.  There are cases in which both solutions are 
inappropriate: unnecessary floats can overcomplicate layouts and inline 
elements aren't allowed to contain block elements, thus eliminating either 
or both of them as options in a particular situation.


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

Message thread:

Possibly related: