Using object-fit in CSS for automatic image cropping

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 11

  • @nextrie
    @nextrie  5 лет назад +3

    Have you ever come across the object-fit property in a project?

  • @the_neutral_container
    @the_neutral_container Год назад +1

    Thanks! Works perfectly.

  • @mukulk6847
    @mukulk6847 Год назад +1

    thanks man a wasted a lot of time for this on other tutorials but you cleared my doubts in just 5 minutes

  • @omaratef6592
    @omaratef6592 Год назад +1

    this enabled me to fix a problem, thanks !

  • @jseh_
    @jseh_ 2 года назад +1

    best explanation 👌

  • @dashdoger135
    @dashdoger135 3 года назад +1

    i know this is old but really not needed spending extra time showing the images are different sizes

    • @nextrie
      @nextrie  3 года назад +1

      My older tutorials were indeed unnecessarily long, which is why I worked on making my more recent ones much more straightforward. I hope the changes are more convenient to you. At some point in the future, I'll cover CSS once again.

    • @dashdoger135
      @dashdoger135 3 года назад +1

      @@nextrie honestly I’m just lashing out cuz I was stressed trying fix a problem. Your tutorial was exactly what I needed.

    • @nextrie
      @nextrie  3 года назад

      @@dashdoger135 it's all good. I hope you got your issue fixed :)