Hallo,
ich bastele gerade an meiner Homepage für meine Klasse... zuerst hatte ich die mit Frames gemacht aber jetzt probier ich das mal mit Div-Containern. Allerdings hab ich jetz ein problem. Immer wenn der Inhalt länger ist als die Navigationsleiste ist in der eine weiße Lücke (wenn der Abstand zu groß ist)
Sieht man hier auf dem Bild sehr deutlich:

Woran kann das liegen?
Die CSS Datei sieht so aus:
Viele Grüße
Alexander
ich bastele gerade an meiner Homepage für meine Klasse... zuerst hatte ich die mit Frames gemacht aber jetzt probier ich das mal mit Div-Containern. Allerdings hab ich jetz ein problem. Immer wenn der Inhalt länger ist als die Navigationsleiste ist in der eine weiße Lücke (wenn der Abstand zu groß ist)
Sieht man hier auf dem Bild sehr deutlich:
Woran kann das liegen?
Die CSS Datei sieht so aus:
Code:
body { text-align: center; } div#root { width: 760px; margin: 0px auto; text-align: left; } div#navi { background-color: #ff8c00; width: 128px; float: left; } div#navi a:link { text-decoration:none; font-weight: bold; color: black; } div#navi a:visited { text-decoration:none; font-weight: bold; color: black; } div#navi a:hover { text-decoration: underline; font-weight: bold; color: red; } div#navi a:active { text-decoration:none; font-weight: bold; color: black; } div#content { border: 1px solid #daa520; background-color: #daa520; width: 610px; float: right; padding: 0px 10px; } div#header { background-color: #ff8c00; padding: 10px 10px; } div#footer { background-color: #ff8c00; clear: both; padding: 4px; }
Alexander
Kommentar