Hallo,
ich tätige gerade meine ersten Schritte mit CSS und stehe vor folgendem Problem: Ich möchte, dass die Klasse „Hintergrund“ als Container für den gesamten Inhalt automatisch nach unten mitwächst. Im IE 6.0 funktioniert das auch, Firefox 3.0 schneidet sie allerdings nach „Header“ ab. Es befindet sich also nur „Header“ in „Hintergrund“, „Haupttext“ und „Tipps“ liegen außerhalb.
Die CSS-Datei:
body {
margin: 0;
padding: 0;
width:100%;
height:100%;
background-color: #000000;
}
.hintergrund {
background-color: #CC3300;
width: 900px;
position: relative;
margin: auto;
height: auto;
}
.header {
background-color: #FFCC00;
width: 800px;
height: 150px;
position: relative;
margin: 20px;
}
.haupttext {
background-color: #99CCFF;
width: 60%;
height: 150px;
position: relative;
margin: 20px;
float: left;
}
.tipps {
background-color: #00FF99;
width: 20%;
height: 150px;
position: relative;
margin: 20px;
float: right;
}
Und die Index-Datei:
Unbenanntes Dokument Raum für den Inhalt von class „hintergrund“
Raum für den Inhalt von class „header“
Raum für den Inhalt von class „haupttext“
Raum für den Inhalt von class „tipps“
Ich bin mit meinem Latein am Ende.
Gruß und Danke vorab
Müller