<style>
    div {
        position: relative;
        height: 600px;
        width: 450px;
    }
</style>

<div>
    <img class="img--bg lozad" data-src="https://www.wantedinrome.com/i/preview/storage/uploads/2019/01/starbucks-vatican-rome.jpg" alt="">
</div>
<style>
  div{
    position: relative;
    height: 600px;
    width: 450px;
  }
</style>

<div>
  <img class="img--bg lozad" data-src="https://www.wantedinrome.com/i/preview/storage/uploads/2019/01/starbucks-vatican-rome.jpg" alt="">
</div>
/* No context defined for this component. */
  • Content:
    .img--bg {
      object-fit: cover;
      object-position: center;
      position: absolute;
      overflow: hidden;
      width: 100%;
      height: 100%;
    }
    
    
  • URL: /components/raw/img-background/_img-background.scss
  • Filesystem Path: structures/01-atoms/img-background/_img-background.scss
  • Size: 135 Bytes

There are no notes for this item.