i cant figure out why this CSS panel wont enlarge vertically to accomodate X number of interior, relatively positioned panels. the thing is theres a bunch of panels inside another one which seems to work as expected, but THAT is in yet another container wich doesnt size to fit everything inside it, it just flows out the bottom like so:
of course i can size #outerbox to fit everything but i dont know how many items it will need to fit so it must be dynamic.
below is the stripped down page, any help is greatly appreciated.
[tt]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body {
background-color: #A2C9DB;
margin: 0 auto;
font-family: Arial, Helvetica, sans-serif;
COLOR: #oooooo;
FONT-SIZE: 8.5pt;
line-height: 18px;
text-align: center;
}
#outerbox {
top: 40;
margin: 0 auto;
width: 770px;
height: auto
text-align: left;
position:relative;
background-image: url(sample-background.jpg);
background-repeat: no-repeat;
background-color: #ffoooo;
}
#innerbox {
top: 130;
left:188;
height: auto;
width: 450px;
text-align: left;
position: relative;
}
#itembox {
width: 450px;
margin: 0 0 10px 0;
text-align: left;
top: 0;
left: 0;
position: relative;
}
</style>
</head>
<body>
<div id="outerbox">
<div id="innerbox">
<div id="itembox">
<img src=" width="224" height="165" /><br />
</div>
<div id="itembox">
<img src=" width="224" height="165" /><br />
</div>
<div id="itembox">
<img src=" width="224" height="165" /><br />
</div>
</div>
</div>
</body>
</html>
[/tt]
of course i can size #outerbox to fit everything but i dont know how many items it will need to fit so it must be dynamic.
below is the stripped down page, any help is greatly appreciated.
[tt]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body {
background-color: #A2C9DB;
margin: 0 auto;
font-family: Arial, Helvetica, sans-serif;
COLOR: #oooooo;
FONT-SIZE: 8.5pt;
line-height: 18px;
text-align: center;
}
#outerbox {
top: 40;
margin: 0 auto;
width: 770px;
height: auto
text-align: left;
position:relative;
background-image: url(sample-background.jpg);
background-repeat: no-repeat;
background-color: #ffoooo;
}
#innerbox {
top: 130;
left:188;
height: auto;
width: 450px;
text-align: left;
position: relative;
}
#itembox {
width: 450px;
margin: 0 0 10px 0;
text-align: left;
top: 0;
left: 0;
position: relative;
}
</style>
</head>
<body>
<div id="outerbox">
<div id="innerbox">
<div id="itembox">
<img src=" width="224" height="165" /><br />
</div>
<div id="itembox">
<img src=" width="224" height="165" /><br />
</div>
<div id="itembox">
<img src=" width="224" height="165" /><br />
</div>
</div>
</div>
</body>
</html>
[/tt]