I'm facing an issue with the expanding content within my #main
(or) #panel
div, which was obtained from a template. When the content expands, it goes below the page and becomes hidden...
Is there a way to ensure that my main
div expands along with the content?
CSS
#main
{
position: relative;
overflow: hidden;
}
I have some JS/Ajax scripts that adjust the page size when switching pages, could they be causing this issue...?
You can view a live demo here! (Click on the (i) button) The divs expand upon clicking.
It has worked occasionally on another computer but seems very random...
Let me know if you need the scripts or additional code. Basically, everything is enclosed within .main -> .panel
Simply put: Expand the main div's height to accommodate the expanded content.
.panel
{
position: relative;
display: table-cell;
width:100px;
vertical-align:middle;
}