Центральный загрузчик ajax


Я пытаюсь центрировать загрузчик ajax. Но не повезло. Ценю помощь. Ниже приведен код

div.amshopby-overlay {
    background-color: #fafafa;
    height: 100%;
    left: 0;
    opacity: 0.5;
    filter: alpha(opacity = 50);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 555;
}
div.amshopby-overlay img {
    top: 100px;
    left: 45%;
    display: block;
    position: absolute;
}

div.amshopby-overlay div {
    margin: 0 auto;
    display: block;
    width: 300px;
    height: 200px;
    background:  url('../images/amshopby-overlay.gif') 50% 50% no-repeat;
}
 2
css
Author: Zoya, 2015-10-27

1 answers

Это поможет вам

div.amshopby-overlay div {
        bottom: 0;
        height: 130px;
        left: 50%;
        margin: -25px 0 0 -25px;
        position: fixed;
        top: 50%;
        width: 130px;
        z-index: 1000;
        background:  url('../images/amshopby-overlay.gif') 50% 50% no-repeat;
    }
 1
Author: Qaisar Satti, 2015-10-27 04:58:07