.modal-overlay { position: fixed; _position: absolute; top: 0; left: 0; height: 100%; _height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); width: 100%; margin: 0; padding: 0; background: #131313; opacity: .88; filter: alpha(opacity=85); z-index: 1000001; } .modal-window { position: fixed; /* _position: absolute; */ top: 50%; left: 50%; /* margin: 0; padding: 0; */ z-index: 1000002; -moz-border-radius: 8px; -webkit-border-radius: 8px; /* background: transparent url(../images/modal-background.png) top left repeat-x; */ /* margin-top: expression(0 - parseInt(this.offsetHeight / 2)(TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); */ } body{ height:100%; overflow:auto; } .close-window { position: absolute; width: 20px; height: 20px; right: -5px; top: -10px; background: transparent url(../images/close-button-er.png) no-repeat scroll right top; text-indent: -99999px; overflow: hidden; cursor: pointer; }