Easily Make Elementor Images the Same Height (Object Fit)

Sdílet
Vložit
  • čas přidán 18. 04. 2021
  • Do you struggle to make images the same height in Elementor? Check out this obscure option with the Elementor image widget which will save tons of time and make images way easier - even when clients upload odd sizes!
    The feature is called Object Fit and can only be found on images when a height is set.
    Don't have Elementor Pro? It's crazy cheap for the value. Get Elementor Pro (we may get a small kickback for teaching and referring): bit.ly/elementor-kg

Komentáře • 181

  • @PeteSobolev
    @PeteSobolev Před 3 měsíci +3

    Your video was a lifesaver for me! I was wasting time resizing and cropping my images until I saw your fix. Thank you!!

    • @Ruinyourknees
      @Ruinyourknees Před 3 měsíci

      Here's a bonus which may help you. Install this helper CSS and then use the classes on your images to get desired proportions. So, for example, click on an image widget and under the Advanced > Class field enter one of the following such as ratio-4-3. Perfect proportions. The CSS includes object-fit cover so you can probably set a height or max-width and be fine.
      /* Image sizing based on ratio */
      /* Square */
      .ratio-1-1 img {
      aspect-ratio: 1 / 1;
      object-fit: cover;
      max-width: 100%;
      }
      /* Landscape Orientation */
      .ratio-3-2 img {
      aspect-ratio: 3 / 2;
      object-fit: cover;
      max-width: 100%;
      }
      .ratio-4-3 img {
      aspect-ratio: 4 / 3;
      object-fit: cover;
      max-width: 100%;
      }
      .ratio-5-4 img {
      aspect-ratio: 5 / 4;
      object-fit: cover;
      max-width: 100%;
      }
      .ratio-16-9 img {
      aspect-ratio: 16 / 9;
      object-fit: cover;
      max-width: 100%;
      }
      .ratio-1-91-1 img {
      aspect-ratio: 1.91 / 1; /* FB social share */
      object-fit: cover;
      max-width: 100%;
      }
      /* Portrait Orientation */
      .ratio-2-3 img {
      aspect-ratio: 2 / 3;
      object-fit: cover;
      max-width: 100%;
      }
      .ratio-3-4 img {
      aspect-ratio: 3 / 4;
      object-fit: cover;
      max-width: 100%;
      }
      .ratio-4-5 img {
      aspect-ratio: 4 / 5;
      object-fit: cover;
      max-width: 100%;
      }
      .ratio-9-16 img {
      aspect-ratio: 9 / 16;
      object-fit: cover;
      max-width: 100%;
      }

  • @tjdigitalmarketing
    @tjdigitalmarketing Před 5 měsíci

    Absolutely wonderful! I was doing the images thesame as you and this video saves so much time and work! Thank you for this video! I was going crazy with one particular image, no matter what I did I still had the error of the size of this image and now it's fixed!!!

  • @user-dm9yd7mf1v
    @user-dm9yd7mf1v Před rokem +1

    thank you for this! i was getting so frustrated and couldn't find any other tutorials that solved my problem, but this work and is super simple

  • @mreclecticguy
    @mreclecticguy Před rokem +2

    Thank you! It was driving me crazy trying to get one of my images to bend to my will -- when changing the size of the browser window the image would leap out of the horizontal 2 column layout and change to full size instead of scaling down and staying where it should.

  • @DDOMESSI
    @DDOMESSI Před 2 lety +3

    You're the man!! Been struggling with this issue for some time now. Really appreciate your video, sir!

    • @KingGrizzly
      @KingGrizzly  Před 2 lety

      Very happy to see this video helped you.

  • @Rovpanda
    @Rovpanda Před 3 lety +12

    Exactly what I was looking for! Very, very useful. Thank you, sir! :)

  • @JesusPaidItAll
    @JesusPaidItAll Před 2 lety +3

    I was having the *SAME* problem and was SO frustrated lol. Thanks for explaining how to fix this! Much appreciated!

    • @KingGrizzly
      @KingGrizzly  Před 2 lety +1

      Sure thing! Thanks for the comment.

  • @marymorgan1266
    @marymorgan1266 Před 2 lety +2

    Thanks so much! I have been having fits over this for so long.. This was a game changer for me.
    😃

  • @jasoncook9898
    @jasoncook9898 Před rokem +2

    Spot on, been struggling with this for the last 3 hours and you saved the day.

    • @KingGrizzly
      @KingGrizzly  Před rokem

      Glad this helped, Jason. If you need to align the image vertically (other than center), see some of the other comments here about using some CSS to do so.

  • @unstabledefusion
    @unstabledefusion Před 2 lety +1

    I actually found EXACTLY what I was looking for this time. Thank you!

    • @KingGrizzly
      @KingGrizzly  Před 2 lety

      Ha ha, great! Happy this helped. If you subscribe I promise to keep making exactly what you are looking for. ;-)

  • @jve89
    @jve89 Před 8 měsíci +1

    Omg, this took me hours and it's actually so easy! Thanks a LOT!

  • @TumiEdun
    @TumiEdun Před 2 lety +3

    Thank you so much! This was such a quick, to the point and easy fix for a problem I've been irritated about :)

  • @mtnpfi
    @mtnpfi Před 2 lety +1

    Great, thank you - I wonder why this is not mentioned anywhere?! You saved my day.

  • @MUSEOZ
    @MUSEOZ Před rokem +1

    Dude you just saved me so much time thanks a lot. Legend

  • @hawkinsmitch
    @hawkinsmitch Před 3 lety +1

    Very helpful, thanks for demonstrating!

  • @janwilson6145
    @janwilson6145 Před 2 lety +1

    I cannot tell you how happy this makes me! thanks for posting.

  • @boozaallen
    @boozaallen Před rokem +1

    this is the first youtube comment i've ever left because your solution is AMAZING. this problem has driven me crazy for ever. thank you

    • @KingGrizzly
      @KingGrizzly  Před rokem

      This is great! Thanks for commenting, and happy this helped.

  • @nyks9745
    @nyks9745 Před 2 lety +1

    Thanks a lot. Exactly, what I was looking for. However, the relative width settings (%) didn't work for me. I had to set the width to an absolute pixel value (px) for this trick to work.

  • @rezolution6272
    @rezolution6272 Před 3 lety +3

    Oh my! I have been using margin and padding to do this and it takes way too long. Thank you so much for this very useful tip!!!!

    • @KingGrizzly
      @KingGrizzly  Před 3 lety

      I hope it helps. May not be perfect, but seems easier than some alternatives.

  • @johnboyd8053
    @johnboyd8053 Před 3 lety

    Cool tip, Brian! Thanks for sharing!

  • @yescreative6030
    @yescreative6030 Před rokem +1

    Thanks for this video. I have been looking for a better way to solve this for years. How did I not realise it was built in.

  • @climbbike1234
    @climbbike1234 Před 2 lety +1

    OMG. This has been driving me crazy. Totally not obvious how this works from the widget. Thank you!!!!!!!!!!!!

    • @KingGrizzly
      @KingGrizzly  Před 2 lety

      Very happy to see this helped another human!

  • @richardparker123
    @richardparker123 Před 2 lety +1

    This helped! I was trying to find a solution to this for a LONG time, and you helped me solve it in just a few minutes.

  • @surfssupwatersports
    @surfssupwatersports Před rokem +2

    It's a useful feature, when the img has a subject matter centred, BUT if you have, say a left aligned subject, the img becomes cropped off.
    e.g if you have a rectangle container on its side and the subject matter is far left of the full width img, then this feature pushes the subject out of view as you scale down to tablet and mobile.

    • @KingGrizzly
      @KingGrizzly  Před rokem

      Agreed, this requires thoughtful selection of imagery which is friendly to some cropping along edges.

    • @teodorggg
      @teodorggg Před 9 měsíci

      Set it on "Cover" and Center-Left align.

  • @jigsawkloud
    @jigsawkloud Před 2 lety +1

    Thank you. Exactly what I was looking for :)

  • @stewartl5109
    @stewartl5109 Před 2 lety +1

    omg....i have been learning WP and Elementor Pro for 1 week now. I've watched tons of video tutorials and for a feature that; in my opinion a need to know....just hasn't been explained correctly or shown step by step until now by you. thank you so much. 🙏🙏🙏🙏Im not a code writer but i consider myself tech savvy.
    Before discovering your channel today I would open 2 screens and try to follow the video while working in elementor editor on my website. I have deleted page after page in the set up because I think that start fresh again.
    In my opinion I think some channels dont show and tell all, that's not fair to the customer like me. 🤔 We buy these products for a reason dont we? and that's to get inspired and creative. Any thanks again from expat in Vietnam

    • @KingGrizzly
      @KingGrizzly  Před 2 lety +1

      Happy to see this helped another person! Thanks for leaving a comment.

  • @aymericzambo1914
    @aymericzambo1914 Před 10 měsíci +1

    You justs posted pure magic! Thank you so much for the share! I did not want to start searching for another plugin just for images and all. Thanks again

    • @KingGrizzly
      @KingGrizzly  Před 10 měsíci

      It gets better! They just added an object fit dropdown which lets you choose how you want to align each image (center/left, center/center, left/bottom, etc).

    • @aymericzambo1914
      @aymericzambo1914 Před 10 měsíci +1

      @@KingGrizzlyI just tested it and saw those options. It felt like opening gifts on Christmas morning 😅

    • @KingGrizzly
      @KingGrizzly  Před 10 měsíci

      @@aymericzambo1914 Ha ha! Yeah, that's how I felt. "Where have you been all my life image feature?!"

  • @ReadMr
    @ReadMr Před 8 měsíci +1

    Exactly what I needed! many thanks!

  • @enricgomezstudio
    @enricgomezstudio Před 2 lety +1

    Well… the problem here comes when you need to put something over the image. In a listing it might not be a serious problem on putting a tag or title over with z-index and absolute podition, but in a hero image you could have problems with menu or hero texts.

  • @shirleyansley3084
    @shirleyansley3084 Před 2 lety

    Thank goodness I found this video! This was driving me crazy

  • @reeddoxey5646
    @reeddoxey5646 Před rokem +1

    EXACTLY what I needed!

  • @TechnikBuddyMarkus
    @TechnikBuddyMarkus Před 2 lety +1

    Thanks. So nice and so simple :)

  • @carinalitten8285
    @carinalitten8285 Před 8 dny

    Thank you! My pictures were fine in Elementor but not on my phone and it was driving me nuts and wasting so much time!!! Looking all good now :)

  • @aahkendall
    @aahkendall Před 2 lety +2

    Finally! My life just got better :-) Thanks!

  • @johnzenc1984
    @johnzenc1984 Před 3 lety +1

    This was really useful. Trying to avoid as many plugins as possible.

  • @KevsGuide
    @KevsGuide Před rokem

    thanks. i want to scale the pics bigger or smaller

  • @jenniferward6821
    @jenniferward6821 Před 2 lety +1

    Fabulous. BUT i was using dynamic images and then - no height ??? So tried adding normal image and then using tool icon to pull in the dynamic image and then, presto it’s exactly as you said. I was doing CSS to make it work. Thank you!!!!

  • @thewildcone
    @thewildcone Před rokem +1

    thank you! this also solves the problem of equal height feature not working in loop builder!

    • @diana2ke
      @diana2ke Před 5 měsíci

      exactely! one of those tips saving a lot of time and frustration ;)

  • @kasandramathieson8813
    @kasandramathieson8813 Před 3 lety

    Thank you for this great tip!!

  • @terry9641
    @terry9641 Před 2 lety

    very simple, thank you

  • @Johanatoro8
    @Johanatoro8 Před rokem +1

    This just solved my problem.... thank you very much!

  • @gmzionic
    @gmzionic Před 2 lety +1

    Wow! Life saver! Thank you so much!

  • @amajidkhan1978
    @amajidkhan1978 Před 2 lety +2

    Thank you very much you made my life easy. Thanks once again!

  • @nextstepstutors
    @nextstepstutors Před rokem +1

    Perfect! Thanks for sharing.

  • @zeroajans
    @zeroajans Před 5 měsíci +1

    Thank you very much. This solved my problem.

  • @CWHebert13
    @CWHebert13 Před 2 lety +1

    Wow!! I have built over a hundred elementor sites and this completely blew my mind. I am laughing at myself for completely overlooking this. Thanks for pointing out the obvious for us all.

  • @sheryltedford8832
    @sheryltedford8832 Před rokem +2

    Fantastic! Finally found a solution to my photo image issues.

    • @KingGrizzly
      @KingGrizzly  Před rokem

      Just be mindful of cropping which can happen when using the 'cover' setting. This tends not to work well on very wide images if you are trying to put in people. For example, heads can get cropped.

  • @joebrightbooks
    @joebrightbooks Před 10 měsíci +1

    Yes, you made my day. Thanks!

  • @cebesten-gaming
    @cebesten-gaming Před 2 lety

    Really good finding!

  • @andrewelsass5068
    @andrewelsass5068 Před 3 lety +2

    you're the man. Thank you for this!

  • @LumaBox
    @LumaBox Před 2 lety

    Thank you - this helped me

  • @vilassa
    @vilassa Před 2 lety

    Great! I didn´t know it too, Thanks!

  • @teamwebdesign
    @teamwebdesign Před 2 měsíci

    Lifesaver video - thank you!

  • @KariposTheOne
    @KariposTheOne Před 2 lety +1

    Awesome! Thank you!

  • @wingsluxe
    @wingsluxe Před 3 lety +1

    EXCELLENT. Thank you

  • @theovernight1915
    @theovernight1915 Před rokem +1

    Looking for something that helps me deal with the fact that my website size changes depending on the monitor size used. I have a larger, 26" monitor and the monitor on my 15.5" laptop. When I get the dimensions looking great on one, they look wonky on the other.
    I have been able to get this working before but honestly, I don't remember what I was doing a while back when I got it sorted on a previous site. Any insight into how you can get a hero image that fits on any size monitor, that'd be much appreciated!
    The main challenge I'm having is that I have an H1 title I want in the center, and a banner with a transparent background at the bottom of the hero image that provides additional info.
    So whenever I get the H1 text in the center, the bottom text is under the fold - yet when i bring that up, the H1 text is either all the way at the top, or smushed together with the banner.

    • @KingGrizzly
      @KingGrizzly  Před rokem

      Hard to know without looking, but some thoughts to try...
      Try a vertical or % height on your section/container as well as your image height.
      Or: A section/container background image set to cover may work best for this particular spot. Set padding on the section and then place the h1 and banner inside it.
      Contents of a section or column can be set to vertically center middle.

  • @wuyanchu
    @wuyanchu Před rokem

    awesome tutorial, thx and god bless u, regards from hong kong ^_^

  • @skredoyanahmed6436
    @skredoyanahmed6436 Před rokem +1

    Thansk , finally, spent a few hours trying to find fix this issue before going to bed, not knowing I was only a google search away.

  • @thereddeath12
    @thereddeath12 Před 3 lety

    This was money. Thank you!

  • @Unfilterd
    @Unfilterd Před rokem

    Thanks so much for this

  • @artisimportant7248
    @artisimportant7248 Před měsícem

    Perfect! thanks so much!

  • @talfrei
    @talfrei Před 3 lety +1

    Cool tip. I can't believe that i missed this before.

  • @tolkien11
    @tolkien11 Před rokem

    Thank you very much!

  • @mergingshield8719
    @mergingshield8719 Před 2 lety

    I do not see it there... I got Spacing, Width, and Border Radius and then Hover Animation... I am exhausted trying to make these pics the same high

  • @thetheedesk
    @thetheedesk Před 3 lety

    OMG!!!! You dont know how I searched like hell. Afcourse my english isnt good enough to make the right search words but man!! This is something!!!

    • @KingGrizzly
      @KingGrizzly  Před 3 lety

      I'm very glad to see this helped Rafal. Thanks for the message!

  • @lebonam12
    @lebonam12 Před rokem +1

    Most grateful King Grizzly. Thank you

  • @owenrees7544
    @owenrees7544 Před 8 měsíci

    Why can I not see the Height option in Image? I can only see Spacing and Width

  • @aalindbansal3460
    @aalindbansal3460 Před rokem

    saved my hours thanks

  • @asaadamin6226
    @asaadamin6226 Před rokem +2

    Man!! This was Awesome 😍 Thanks alot

    • @KingGrizzly
      @KingGrizzly  Před rokem

      Happy it helped. Stay tuned, we've got some exciting videos coming out over the next month or two. Should make using Elementor easier and faster.

  • @GildasBenoit
    @GildasBenoit Před rokem

    Thanks ! made my day too !

  • @treepocket2834
    @treepocket2834 Před rokem +1

    Still beneficial years later, thank you!

    • @KingGrizzly
      @KingGrizzly  Před rokem +1

      Has it been years already?! 😱

    • @treepocket2834
      @treepocket2834 Před rokem +1

      @@KingGrizzly lol only a couple 🙂

    • @KingGrizzly
      @KingGrizzly  Před rokem

      @@treepocket2834 Ha ha. Feels like I just made that video. Time flies.

  • @nataliarobless
    @nataliarobless Před 7 měsíci

    Thanks so much!! I was losing soooo much time with this!!!!

  • @ramonguilhermecassel2977
    @ramonguilhermecassel2977 Před 3 lety +1

    Super useful thanks a lot!

    • @KingGrizzly
      @KingGrizzly  Před 3 lety

      Very happy to help. Thanks for the comment.

  • @dianamiller9766
    @dianamiller9766 Před 2 lety

    Thank you!!!

  • @BEETHEFASHION
    @BEETHEFASHION Před 10 měsíci +2

    You are a life saver and this worked perfectly! I was just about to give up and why is it so hard to figure out Elementor?! I think I'm on day 10 of trying to figure out how everything works!

    • @KingGrizzly
      @KingGrizzly  Před 10 měsíci +1

      Keep learning! Once you get the hang of it, you can build just about anything using Elementor.

    • @BEETHEFASHION
      @BEETHEFASHION Před 10 měsíci +2

      @@KingGrizzly ok will do and thank you again for the information and please keep the videos coming!

  • @alshammari6517
    @alshammari6517 Před 3 lety

    thanks a lot brother

  • @adrianayub872
    @adrianayub872 Před 2 lety

    Dude, thank you.

  • @studiofika4577
    @studiofika4577 Před 2 lety +3

    This. Is. GREAT! Really this is super helpfull! Now by any chance, could you explain how to add a link to this image? Because as soon as you add a link the layout is gone and starts acting like a normal image again...

    • @Bellydanceland
      @Bellydanceland Před 10 měsíci

      I just had the same problem and was wondering if you figured out how to fix it. Thank you!

  • @Bellydanceland
    @Bellydanceland Před 10 měsíci +1

    Your video was really helpful and the first result Google provided for my search today. But I realized that as soon as I added a link to the image the layout was gone and reverted to a cropped image to fit the height but not the width. Any solutions/ideas for that?

    • @KingGrizzly
      @KingGrizzly  Před 10 měsíci

      I'm having trouble reproducing this. Are you using sections or containers? How about a theme?

  • @jeremyinglesi8458
    @jeremyinglesi8458 Před rokem

    after 1 hour of trial, error, and irrelevant google search results...finally! king grizzly for the win! thanks man!

  • @nelsonrealegeno1305
    @nelsonrealegeno1305 Před rokem

    thank you!!!

  • @zedgarden
    @zedgarden Před rokem +1

    super thank you for this

  • @vanlanh
    @vanlanh Před 3 lety

    OMG!!! Lifechanging tip! Thank you!

  • @teresamarumoto7140
    @teresamarumoto7140 Před rokem +1

    Thank you soooooo much!!!!!!!!!

  • @chetcaruthers8612
    @chetcaruthers8612 Před rokem +1

    Thanks! You saved me hours of frustration… 👌😎👌

    • @KingGrizzly
      @KingGrizzly  Před rokem +1

      Thanks for the note Chet. Have a great week.

  • @agnesveltman-boeijing5451
    @agnesveltman-boeijing5451 Před 6 měsíci +1

    You made my day.

  • @joshlyons1005
    @joshlyons1005 Před 5 měsíci

    Great tip

  • @Najeeb-sc2br
    @Najeeb-sc2br Před 6 měsíci

    thanks

  • @4guysdigitalenterprise303

    You are a GENIUS! Thank you!!!!!

    • @KingGrizzly
      @KingGrizzly  Před 3 lety

      Ha! If only this were the case. Thanks for the note!

  • @thedepravityscale3047

    How would I align the bottom of the images if they were placed below the text? While still having the top of the text aligned too.

    • @KingGrizzly
      @KingGrizzly  Před rokem

      Not sure on the specifics of your layout, but you may be able to select the container and set the vertical align to "space between".

  • @xrisxal2000
    @xrisxal2000 Před 3 měsíci

    Excellent!

  • @Hootbrooks
    @Hootbrooks Před 2 lety

    thank you! i've been doing it wrong for so long..

  • @deslyatekendaya8671
    @deslyatekendaya8671 Před 10 měsíci

    thank you so very much

  • @Zack87254
    @Zack87254 Před 2 lety +1

    Hi, did you know how to align the picture? So align top/bottom or even select, which part of the picture is shown, which is cropped? Thx!

    • @KingGrizzly
      @KingGrizzly  Před 2 lety

      If you set the image to "cover", it will be centered. If you set it to "contain", all of the image will show but the images will only fill the space in equal proportions if they are sized the same when uploaded. Aligning a "cover" image differently would probably require a CSS override if that's even possible.

    • @surfssupwatersports
      @surfssupwatersports Před rokem

      @@KingGrizzly css for an img within a container can be as follows: img{object-position:center;}
      Attach it to the container the img sits within.
      You then have options for alignmnet based on the subject and visual layout of the img

    • @KingGrizzly
      @KingGrizzly  Před rokem

      @@surfssupwatersports Great tip! So the object-position could be changed from center to another value?

  • @thomasholt5884
    @thomasholt5884 Před rokem

    what an amazing discovery

  • @sina_ideas
    @sina_ideas Před rokem +1

    Thank You So Muchhhhhh

  • @larsbrofgunordgrafisk2271

    There is some kind of bug with this .... when I use this feature and want a dynamic link (Post URL) on the image the object fit doesn't work :-(
    Is there any solution to this?
    Thanks from Copenhagen

    • @KingGrizzly
      @KingGrizzly  Před 2 lety

      I figured one out. Set the width to a pixel value larger than you need but then set the max-width to 100%. This fixed it for me!

  • @Hackerfreak
    @Hackerfreak Před 6 měsíci

    omg... thank you so much :D

  • @kirstycarter
    @kirstycarter Před rokem +1

    Awesome! Thanks. Years of pain solved.

  • @prithvirsingh5401
    @prithvirsingh5401 Před 2 měsíci

    you're literally the goat

    • @KingGrizzly
      @KingGrizzly  Před 2 měsíci

      Ha ha, if only! However, I'm working on a global font styling demo and accompanying CSS clamp tool which might make people happy. Should release it in the next week or two. :-) Happy coding.