last day (15 days later) » 

11:45 PM
1
A: clip in CSS keep the image size to original

Alex IncarnatiInstead of using clip which will still keep the image size (it will just hide the part clipped) you can wrap the image in a container with overflow:hidden; without setting any CSS property to the image. Otherwise the image will just scale keeping the ratio. .clip{ width:72px; height:97px...

 
This is not helping me. Try to hover over img tag in console in your demo. You will see that img tag is taking size of original image in HTML. What i want is to cliped image will take only clipped size.
 
You don't need to inspect the img element but the its container to see the width and the image is hidden cause it overflows. Look here jsfiddle.net/a_incarnati/cL5tc37x/4
 
But this affect how other things display on html page.
I want to display other image/content at that part.
 
You can still use the space which is hidden by overflow:hidden; on the side of the first img.
 
This one worked. Problem was i was applying overflow in image tag.
Please refer this jsfiddle.net/3a3sj4r1
why there is space between two images
are you there?
 

  last day (15 days later) »