.user-gift-popup { background: rgba(0, 0, 0, .3); position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 100; .user-gift-bgimg { position: relative; top: 50%; margin-top: -200px; .close_gift_box { position: absolute; left: 50%; margin-left: -13px; width: 26px; height: 26px; bottom: -45px; } } }