ShoXX
Mitglied
Hallo Leutz,
ich würde gerne erreichen, dass das container div so lang wird wie das inhalts div.... aber so richtig wills mir nicht gelingen :(
HTML:
und hier das css dazu:
pls help und thx im vorraus ^.^
ich würde gerne erreichen, dass das container div so lang wird wie das inhalts div.... aber so richtig wills mir nicht gelingen :(
HTML:
HTML:
<!DOCTYPE HTML>
<html>
<head>
<title>Startseite</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body>
<div id="container">
<div id="header">
Header
</div>
<div id="hauptnavi">
navi
</div>
<div id="inhalt">
inhalt
</div>
<div id="sidebar">
sidebar
</div>
</div>
</body>
</html>
Code:
* {
padding:0px;
margin:0px;
}
body {
font-family:Verdana;
font-size:10pt;
color:white;
text-align:center;
}
#container {
margin-right:auto;
margin-left:auto;
width:1100px;
text-align:left;
border:1px solid white;
background-color:black;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-top:10px;
margin-bottom:10px;
// Hier geht jetzt weder min-height, noch height oder andere Sachen die mir bekannt sind...
}
#hauptnavi {
width:250px;
float:left;
height:300px;
}
#sidebar {
width:250px;
height:300px;
float:left;
}
#inhalt {
width:600px;
float:left;
height:1000px;
}