html - Black lines appearing in Safari -


i have type of teaser scales down on window resize. on window widths, these black lines appear on both sides of div.

the problem occurs in safari.

here picture

.lehre__seminarteaserimage {    max-height: 207px;    margin-bottom: 48px;    overflow: hidden;    background-size: cover;    background-position: center center;  }    .lehre__seminarteaserimage img {    width: 100%;    height: auto;    display: block;  }    .lehre__seminarteaser {    position: relative;    float: left;    width: 452px;    max-height: 255px;    background-color: black;    margin-bottom: 24px;    overflow: hidden;    border-radius: 2px;  }
<div class="lehre__seminarteaser js__teaser transition-03">    <a href="url" title="physical computing lab">        <div class="lehre__seminarteaserimage">        <img width="452" height="141" src="url" class="attachment-page-thumb size-page-thumb wp-post-image" alt="media-manager" srcset="url" sizes="(max-width: 452px) 100vw, 452px" />      </div>        <div class="lehre__seminarteasertitle highlight--bold highlight--color">        physical computing lab      </div>      </a>    </div>


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -