I have a large div and am trying to place 4 divs inside it. The containing div has a set height, as do two of the contained div. The other two do not have set heights.
It works fine unless one of the divs without a set height gets too big. If that happens, I want it to add a scroll bar. Instead, it just cuts off the rest of the content.
Here are my divs:
Containing Div:
-
#CenterDivNA {
-
width: 580px;
-
height: 800px;
-
float: left;
-
background: #FFFFFF;
-
display:block;
-
}
-
This set-height div is repeated twice:
-
#DishClassNA {
-
position: relative;
-
border-top: 1px solid #666666;
-
border-bottom: 1px solid #666666;
-
text-align: left;
-
height: 20px;
-
}
-
Here is the (usually) shorter of the two variable height divs:
-
TopFrameCenterTable {
-
position: relative;
-
text-align: left;
-
}
-
And here is the other one:
-
#centerframena{
-
position: relative;
-
text-align: left;
-
overflow:auto;
-
padding-left: 15px;
-
width: 564px;
-
}
-
Thanks for all ideas.