.container { position: relative; z-index: 2000; .shade { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background-color: #000; opacity: 0.6; filter:alpha(opacity=60); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=60);"; } .modal { width: 820px; background: #fff; position: fixed; left: 50%; margin-left: -410px; top: 7%; bottom: 7%; height: 86%; overflow: hidden; padding-top: 45px; } .close { padding: 0 15px; height: 45px; line-height: 45px; border-bottom: 1px solid #EAEDF1; position: absolute; width: 100%; top: 0; img{ float:right; cursor: pointer; margin-top: 10px; } } }