Previous Message
Next Message

Header Width

Sent by Adam Kuehn on 1 September 2005 20:08

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.


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

Message thread:

Possibly related: