Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Ebraheem Bdarni
Added: Sep 10, 2020 2:50 PM
Views: 40
Tags: css
  1. <style>
  2.         .center-cropped-image {
  3.             object-fit: none; /* Do not scale the image */
  4.             object-position: center; /* Center the image within the element */
  5.             height: 100px;
  6.             width: 100px;
  7.         }
  8. </style>