CSS Resize/Zoom-In effect on Image while keeping Dimensions
You could achieve that simply by wrapping the image by a <div> and adding overflow: hidden to that element: <div class=”img-wrapper”> <img src=”…” /> </div> .img-wrapper { display: inline-block; /* change the default display type to inline-block */ overflow: hidden; /* hide the overflow */ } WORKING DEMO. Also it’s worth noting that <img> element … Read more