css - divboxen

pangu

Angesehenes Mitglied
hab folgenden code:
.css:
QUOTE
body
{ background-color: #ffffff;
font-size:12px;
font-family:verdana;
color:#000000;
}

.content
{
width: 867px;
height=???px
margin: 0 auto;
text-align: left;
position: relative;
background-color:#ececec;
}


.auswahl
{ position:absolute;
left:0px;
top:0px;
width:867px;
height:52px;
background-color:#ececec;
text-align:center;
}
.oben_links
{ position:absolute;
left:9px;
top:61px;
width:650px;
height:280px;
background-color:#ffffff;
text-align:center;
}

.oben_rechts
{ position:absolute;
left:668px;
top:61px;
width:190px;
height:280px;
background-color:#ffffff;
text-align:center;
}

}


htm:

QUOTE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<link rel="stylesheet" href="boxen.css" type="text/css">
<title>xxxxx</title>
</head>
<body>

<div class='content'>

<div class='auswahl'>
</div>

<div class='oben_links'>
----> ol <----
</div>

<div class='oben_rechts'>
----> or <----
<span class='text_unten'>hallo, ich bin ein text der ganz unten steht</span>
</div>

</div>


</body>



div content wird jetzt nur grau eingeblendet, wenn ich eine höhe in pixel angebe.
möchte das ber dynamisch halten (soll also genau so groß sein, wei inhalt auf der seite)
-> wie mache ich das??
 
Zurück
Oben