tripwater
09-14-2011, 07:39 PM
I have a rounded corner container with drop shadow and within it, a left menu and then a content section on the right setup like so
#container
{
margin-top:50px;
margin-left:10px;
padding:0;
display: inline-block;
height:90% !important;
width:90% !important;
background-color:whitesmoke;
}
.reg_menuleft
{
width:210px;
float:left;
}
#reg_body
{
float:left;
}
<div id="container" class="borderall shadow">
<div id="reg_menuleft" class="reg_menuleft"></div>
<div id="reg_body"></div>
</div>
The classes for borderall and shadow just add the rounded corners and drop shadow to the big container. My issue is that when the content on the right is too wide like in the case of a gantt chart or too long from long form or the menu expanded, the menu and/or the content go beyond the the container div instead of making it expand.
The content is dynamic and needs to be able to expand vertically or horizontally or both. Like mentioned earlier we have a gantt chart that tracks days across plus activity down and it can be a rather larger report which I would like for the #container to still contain it and the rounded corner/shadow box always contain these items ( menu / content )
Thanks for any help with this.
Attached are some screen shots of the current behavior
Before expanding and content fits ( how it should look )
http://farm7.static.flickr.com/6173/6147405793_d121c52b2f.jpg (http://www.flickr.com/photos/31289282@N02/6147405793/)
Menu expanded
http://farm7.static.flickr.com/6168/6147966080_0a6c698d75.jpg (http://www.flickr.com/photos/31289282@N02/6147966080/)
Content expanded, notice that it makes the height expand when left menu had not.
http://farm7.static.flickr.com/6170/6147421351_1b79957f8d.jpg (http://www.flickr.com/photos/31289282@N02/6147421351/)
Now for the gantt which ends up the content line-wrapping due to the float left and then shooting out of the container...
http://farm7.static.flickr.com/6196/6147985058_65e36cd197.jpg (http://www.flickr.com/photos/31289282@N02/6147985058/)
Thank you for any help with this, I imagine it is something simple I am overlooking.
#container
{
margin-top:50px;
margin-left:10px;
padding:0;
display: inline-block;
height:90% !important;
width:90% !important;
background-color:whitesmoke;
}
.reg_menuleft
{
width:210px;
float:left;
}
#reg_body
{
float:left;
}
<div id="container" class="borderall shadow">
<div id="reg_menuleft" class="reg_menuleft"></div>
<div id="reg_body"></div>
</div>
The classes for borderall and shadow just add the rounded corners and drop shadow to the big container. My issue is that when the content on the right is too wide like in the case of a gantt chart or too long from long form or the menu expanded, the menu and/or the content go beyond the the container div instead of making it expand.
The content is dynamic and needs to be able to expand vertically or horizontally or both. Like mentioned earlier we have a gantt chart that tracks days across plus activity down and it can be a rather larger report which I would like for the #container to still contain it and the rounded corner/shadow box always contain these items ( menu / content )
Thanks for any help with this.
Attached are some screen shots of the current behavior
Before expanding and content fits ( how it should look )
http://farm7.static.flickr.com/6173/6147405793_d121c52b2f.jpg (http://www.flickr.com/photos/31289282@N02/6147405793/)
Menu expanded
http://farm7.static.flickr.com/6168/6147966080_0a6c698d75.jpg (http://www.flickr.com/photos/31289282@N02/6147966080/)
Content expanded, notice that it makes the height expand when left menu had not.
http://farm7.static.flickr.com/6170/6147421351_1b79957f8d.jpg (http://www.flickr.com/photos/31289282@N02/6147421351/)
Now for the gantt which ends up the content line-wrapping due to the float left and then shooting out of the container...
http://farm7.static.flickr.com/6196/6147985058_65e36cd197.jpg (http://www.flickr.com/photos/31289282@N02/6147985058/)
Thank you for any help with this, I imagine it is something simple I am overlooking.