#dropElem { display: none; position: absolute; border-radius: 10px 10px 10px 10px; box-shadow: 0 0 25px 5px #999; padding:3px; background: #fff; z-index:9999; width:80%; top:20% !important; max-width:500px; margin:0 auto; } #shadowElem { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: black; opacity: 0.3; z-index:9999; } #dropContent { position: relative; } #dropClose { background-color: #a30a35; border-radius: 15px; color: #fff; cursor: pointer; padding: 5px; position: absolute; right: -30px; top: -32px; z-index: 99999; width: 20px; height: 20px; text-align: center; } *******************************************************************-->