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?


CJ,

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.

Regards,
Paul 

______________________________________________________________________
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/
Previous Message
Next Message

Message thread:

Possibly related: