ie 7 filtre konum sorunu

ie 7 filtre konum sorunu

by fatihhayri

HTML

<div id="filtre" class="kapsul">
    <div class="absolute">
        <p>Absolute div</p>
    </div>
</div>

<div class="kapsul">
    <div class="absolute">
        <p>Absolute div</p>
    </div>
</div>

CSS

.kapsul {
    position: relative;
    margin: 0 0 80px 0;
    width: 300px;
    height: 60px;
    background-color: #23538a;
    overflow: visible;
}


#filtre {
    background: #a7cfdf; /* Old browsers */
    background: -moz-linear-gradient(top,  #a7cfdf 0%, #23538a 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a7cfdf), color-stop(100%,#23538a)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #a7cfdf 0%,#23538a 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #a7cfdf 0%,#23538a 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #a7cfdf 0%,#23538a 100%); /* IE10+ */
    background: linear-gradient(top,  #a7cfdf 0%,#23538a 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a7cfdf', endColorstr='#23538a',GradientType=0 ); /* IE6-9 */
}


.absolute {
    position: absolute;
    top: 20px;
    left: 25%;
    padding: 20px;
    width: 220px;
    color: #fff;
    background-color: #cf0404;
}