[Gelöst]Übergeordnetes Div an untergeordnetes anpassen

Hi ich bins mal wieder :stuck_out_tongue:

Gibt es die Möglichkeit ein Div (z.B div-box) an die höhe des darinliegenden (div-innen) anzupassen??

[code]

blablabla...
[/code]

würde mich sehr über eure hilfe freuen :stuck_out_tongue:

Evtl. mit:

<body>
<div id="div-box">
    <div id="div-innen">
    blablabla...
    </div>
</div>

[size=85]css[/size]

#div-box {
padding: 0px;
margin: auto;
}
#div-innen {
height: 100px; 
width: 1000px;
}

Versuchs mal ^^

geht leider nicht.
hier mal der code:

style.css

[code]#inhalt-box {
min-width: 900px;
height: auto;
max-width: 900px;
margin: 0 auto;
padding: 0px;
background-color: yellow;
}

#inhalt {
float: left;
min-height: 800px;
min-width: 640px;
max-width: 640px;
border-width: 1px;
border-color: white;
border-style: solid;
background-color: blue;
margin: auto;
}

#navigation-rechts {
float: right;
min-height: 300px;
min-width: 250px;
max-width: 250px;
border-width: 1px;
border-color: white;
border-style: dashed;
background-color: black;
}[/code]

und die index.php:

[code]

Test
  • test1
  • test2
  • test3
  • test4
  • test5
[/code]

viewtopic.php?p=178643#p178643

danke es hat geklappt!!!
:hail: :hail: