.common-dialog-box{ opacity: 0; filter: alpha(opacity=0); position: fixed; top: 0%; left: 50%; z-index: 1000; 500px; height: 50px; line-height: 50px; margin-left: -250px; border-radius: 3px; background-color: #fff; overflow: hidden; visibility: hidden; transition: all 0.5s; -ms-transition: all 0.5s; } .common-dialog-box.show{ visibility: visiblel; opacity: 0.7; filter: alpha(opacity=70); top: 1%; } .common-dialog-box .common-dialog-body{ color: #fff; text-align: left; }