08.03.2007, 10:51
|
Erfahrener Benutzer
XHTMLforum-Kenner
|
|
Registriert seit: 28.01.2005
Beiträge: 11.775
|
|
Zitat:
Zitat von mazzo
Wenn ein float keine width hat, nimmt es als Blockelement automatisch 100% Breite ein.
|
Das stimmt nicht.
Seit CSS 2.1 gilt:
Zitat:
[Calculating widths and margins | Floating non-replaced elements]
If 'width' is computed as 'auto', the used value is the "shrink-to-fit" width.
|
|