ChrisB: Float-Problem - Die Navigation will nicht fließen

Beitrag lesen

Hi,

#logo { margin-top:35px; margin-bottom:15px; float:left; }
#nav { width:100%; height:57px; overflow:hidden; }

Aber: Warum fließt da nichts?

Weil 100% Breite *und* overflow:hidden gesetzt sind.

overflow:hidden hat diverse Seiteneffekte – u.a. den, dass es einen neuen Block Formatting Context eröffnet. Und der, zusammen mit den 100% Breite, sorgt dafür dass die Navigation nicht mehr neben das gefloatete Logo „passt“.

MfG ChrisB

--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/