Advertisement
phpface

Untitled

May 30th, 2020
1,190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.29 KB | None | 0 0
  1. .item-img {
  2.     padding-bottom: 56.25%;
  3.     margin-bottom: 10px;
  4.     position: relative;
  5.     display: block;
  6.     overflow: hidden;
  7.     width: 100%;
  8. }
  9.  
  10. .item-img img{
  11.     position: absolute;
  12.     top: 0;
  13.     left: 0;
  14.     width: 100%;
  15.     height: 100%;
  16.     vertical-align: middle;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement