It's because you have used a fixed pixel height on #tabscontainer
but a percentage on #ajaxresults
. Resizing the window will show (or cut) more of the scrollbar since 90px won't always be 10% of the viewport.
The easiest way to fix this is to set #tabscontainer
to have height:10%
.
EDIT: Just noticed your comment about the tabs being a fixed height. Looking for an alternative fix.
Okay, found a fix though I haven't tested this in IE so you may want to have a look at that ;)
- Give
#col2
a position:relative
- Remove
height:90%
, min-height:90%
and max-height:90%
from #ajaxresults
.
- Give
#ajaxresults
: position:absolute
, top:90px
and bottom:0
.
Try that out and it should work as intended, but like I said I haven't checked IE so you may need to do a little more hacking to get it to work there.