Previous Message
Next Message

Header Width

Sent by Adam Kuehn on 1 September 2005 19:07


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

It is certainly possible to inline them, but floating can carry some 
important advantages, particularly if you are floating links.  In 
that case, floating makes the items block display, which, in turn, 
makes the entire block area clickable.  Inline elements allow 
clicking only on the text.  There are other difference, as well. 
Inline elements cannot have an explicit width or height and therefore 
also cannot accept margins.  Sometimes those are desirable features, 
and sometimes it doesn't matter so much.

Incidentally, if they are not floated, the clear is irrelevant unless 
there are preceding floats.  The ability to clear can be another 
advantage or disadvantage of floating, depending on the layout.

HTH,
-- 

-Adam Kuehn
______________________________________________________________________
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: