I have a modal div on my page, which grays out the background. If I set the height of overlay div to 100%, it works fine on IE (desktop), but on iPad Safari, the complete height is not grayed out. What exactly is the issue? Is it to do with fixed position/viewport? Please help. Below is the CSS for the same;
#TB_overlay {
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.TB_overlayBG {
background-color: #000000;
opacity: 0.4;
}
Hi the easiest way and that’s how I do it is to give maximum height width to the overlay. Like:
You can put this at the bottom i.e. before
bodytag and change itsdisplaytoblockwhenever you want to gray out the background. Obviously whatever you want to show on top of it must have a greaterz-index. Hope this helps. Let me know if you don’t understand.