The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS image crop

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #194823

    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.


    how ironic.
    I was just going to post seperately about a different problem with this codepen.
    But look here -
    the class mitloehner img

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.