The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS image crop
Hi, i need some help
how can i use CSS to crop image without lose the ratio of height to width?
Your question is a little vague.
Are these inline images in the HTML or background images?
Under what circumstances should the images ‘crop’?
What, if anything, is around the images, how should it react to this ‘cropping’?
Can you make a Codepen reduced case showing the problem?
Basically, show us what is happening now…and what is supposed to happen.
I was just going to post seperately about a different problem with this codepen.
But look here -http://codepen.io/anon/pen/XJedqg
the class mitloehner img