The object-fit property in CSS - Maintain aspect ratio on images or video - Web Design Tutorial

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 27

  • @maxbranco7321
    @maxbranco7321 4 роки тому +12

    Saved my life, couldn't find this anywhere

  • @Con-fidence
    @Con-fidence 4 роки тому +2

    I struggled so much with trying to shrink the darn thing. Thanks, your explanation made everything clear for me :')

  • @jayasurya9145
    @jayasurya9145 4 роки тому

    This is awesome, you know... no where this concept explanation found in youtube.. u the best.

  • @robertsedgewick1266
    @robertsedgewick1266 4 роки тому

    This video is a gem on youtube. Thanks for sharing!

  • @keifer7813
    @keifer7813 2 роки тому

    Great explanation brother

  • @techrelated4
    @techrelated4 10 місяців тому

    Thank you sir, this helped me a lot.

  • @dylanm7638
    @dylanm7638 3 роки тому

    thanks brother, saved my time

  • @alextheblockchaindev
    @alextheblockchaindev 5 років тому +1

    Good Job! Thanks for the video!

  • @markzait2750
    @markzait2750 Рік тому

    Very useful video. Thank you!

  • @halobule
    @halobule 4 роки тому

    How about the featured image in post preview? when I change size on post preview page then it will show the same size in the actual post. How do I get around this?

  • @LonelyJester
    @LonelyJester 5 років тому +1

    this is a very lovely property!!!!!

  • @mahdiceddo4205
    @mahdiceddo4205 5 років тому

    please what about if i want the imahe have same value when i resize the viewport? i mean the image be like frozen at its initial appearence

  • @prabu2778
    @prabu2778 4 роки тому

    What's the difference between background size and object fit?

  • @jivanmainali1742
    @jivanmainali1742 4 роки тому

    Nice tutorial

  • @rajusam5
    @rajusam5 5 років тому

    This is really helpful. Ty

  • @helmialfathseptiana6383
    @helmialfathseptiana6383 4 роки тому

    this is great :)

  • @ink16it03
    @ink16it03 5 років тому +1

    What your theme?

  • @praveenrajsr2112
    @praveenrajsr2112 5 років тому +1

    Thank you sooo much! :)

  • @Skyflyer
    @Skyflyer 5 років тому

    Hello dcode, thanks for this video.
    It is possible to maintain this aspect ratio on a with a background-image ?

    • @hppycjavs2805
      @hppycjavs2805 5 років тому

      I have that issues too when i tried two column background images with fixed width and height. It always breaks on some screen sizes... but i did tried it thru media query mate..and i think it fixes that issue...

  • @aijiexi
    @aijiexi 3 роки тому

    I wanted a tutorial on the other two

  • @cryptocoinkiwi8272
    @cryptocoinkiwi8272 4 роки тому

    BRA fricken VO!

  • @naeem2057
    @naeem2057 3 роки тому

    karma loves you

  • @mtycoder
    @mtycoder 4 роки тому

    you are beautiful, i dont neet to see you, i just know you are