PDA

View Full Version : Container not expanding with content


Mark_W
07-21-2007, 07:34 PM
Hi, I have a container with the following values:

#container {
width:900px;
height:auto;
border:#000000 1px solid;
background-color: #F6F6F6;
}

That piece of css is used on each page, each page has a content box, which varies in height depending on which page you are on.

The following is the css for the content box;

#mcontentcontainer {
width:480px;
margin: 15px 10px 240px 10px;
float:left;
}

#mcontent {
width:480px;
background:#FFFFFF;
border: 1px #000000 solid;
margin: 10px 0px 0px 0px;
}

The problem I'm running into is that unless I specify a height (I.E. Height:400px;) the container doesn't show. But when I do specify a height it obviously doesn't expand fluidly.

Can anyone help me on my error?

m1a2x3x7
07-23-2007, 06:17 PM
height:auto;