Also, soweit ich weiß, gibt es keine Definition. Ich kenn nur den Trick: HTML Code: <div id="layout"></div> <div id="footer"></div> CSS Code: #layout, body, html { height:100%; margin:0; } #footer { background-color:#666666; height:30px; margin-top:-30px; } Das sorgt aber dafür, dass Teil Immer GANZ unten rumhängt. Ich weiß jetzt aber nicht, ob du wolltest, dass es immer AM BILDSCHIRMRAND klebt. Das sähe nämlich so aus: Code: #footer { height:40px; width: 100%; position: fixed; bottom: 0px; right: 0px; text-align: center; background-color: #000066; margin-top: 20px; }
<div id="layout"></div> <div id="footer"></div>
#layout, body, html { height:100%; margin:0; } #footer { background-color:#666666; height:30px; margin-top:-30px; }
#footer { height:40px; width: 100%; position: fixed; bottom: 0px; right: 0px; text-align: center; background-color: #000066; margin-top: 20px; }
Foren-Regeln