#overlay { display: none; width: 100%; height: 100%; z-index: 2; position: absolute; top: 0; left: 0; background: url(../images/background.png) top left repeat; } #popup { display: none; z-index: 99; width: 70%; height: 70%; top: 15%; left: 15%; border: 5px solid #000; position: fixed; } .fullscreen { width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; } #popup a.close { float: right; width: 30px; height: 30px; position: relative; margin: -15px -17px 0 0; } #popup #popupMain { float: left; width: 100%; height: 100%; margin: -15px 0 0 0; background: #fff; } .not-closeable { margin: 0 !important; } #popup #popupMain iframe { float: left; border: none; width: 100%; height: 100%; }