ich weiß, dass mit height und den DIV's ist ein kompliziertes Thema. Nun habe ich mein CMS aber auf dem neuesten Stand und wollte mich auch vom Tabellenlayout lösen, hin zum rein CSS-basierten DIV-Layout.
So sieht meine Vorlage aus:
Code: Select all
<div id="container"><div id="header">
<div class="nlu_horiz1">{NAV_LIST_UL:HCSS,,0,act_path,active}</div>
<div id="navi"><div class="breadcrumb">{BREADCRUMB}</div></div></div>
<div id="left-navigation" ></div>
<div id="content">{CONTENT}</div>
<div id="right-box">
<div id="footer"></div>
</div>
Code: Select all
html {min-height: 100%}
body { font-size: 11px; font-family: Verdana, Helvetica, Arial, sans-serif; background-color: #e6e6e6; height:100%;}
#container { background-color: #fff; margin: 10px auto; padding: 10px; width: 980px; border: solid 1px #ccc; w\idth: 960px }
#navi { color: #666; font-size: 10px; font-family: Verdana, Arial, sans-serif; background-color: #efefef; text-align: center; margin-top: 0; margin-bottom: 0; padding: 0; height: 20px; border-top: 0 #ccc; border-right: #ccc; border-bottom: 0 #ccc; border-left: #ccc }
#header { background-color: #efefef ; margin-bottom: 0; padding: 0; height: auto; border-style: solid solid none; border-width: 1px 1px 0; border-color: #ccc }
#left-navigation { background-color: #f5f5f5; text-align: left; margin: 0; padding: 0; width: 195px;height:100%; float: left; border-left: 1px solid #808080 }
#content { background-color: #fff; text-align: left; margin-top: 0; padding: 0; width: 560px;height:100%; float: left; border-top: medium none #efefef; }
#right-box { background-color: #fc0; text-align: left; margin: 0; padding: 0; width: 200px; height: 100%; float: right; border-right: 1px solid #808080 }
Selbst wenn ich eine Fixe Höhe eingebe, wenn der Inhalt überfließt, so wird auch dann weder der Border, noch z.B. der definierte Hintergrund mitgezogen.