In my popup I have fixed the size, and if the inside content is larger there should come a vertical scrollbar, It works fine in firefox (though i only want vertical scrool bars) but does not work in IE(using IE 8). Below are the images. What could be the problem?


My CSS code
#compareParentDiv
{
overflow-y: auto;
//overflow-x: hidden;
max-height: 380px;
width:100%
}
My Div
$('#compareContent').empty();
$('<div id="compareParentDiv" width="100%">'+
'<table id="list2" cellspacing="0" cellpadding="0"></table>'+
'<div id="gridpager2"></div></div>')
.appendTo('#compareContent');
Look into
overflow-y:scrolloroverflow-y:auto, apply it on the element that should scroll.If set to
scrollscrollbars are always visible, if set toautoit’s up to the browser but I believe that all browsers provide a scrollbar when needed but not otherwise.