Jump to content

Changing image aspect to fit in the video catalogue

Go to solution Solved by ARC_Comms,

Recommended Posts

Hi there, I am trying to change the size of the images on the video catalogue so that they fit the aspect of a YouTube thumbnail and don't have black bars at the top and bottom. I have tried lots of different CSS but none of them seem to work. Help would be greatly appreciated.

@tuanphan your code has helped me in so many different areas of my website, possibly you could work your magic on my issue directly this time. The same goes for @creedon. Any help would be very greatly appreciated.

Thank you in advance.

Link to comment

Thank you for your help, however when I did that, it just zoomed in the image so now the left and right hand sides are being hidden because the frame is too small.

Is there a way to just change the height of the frame so that it fits without cropping the image?

Link to comment
  • Solution

Never mind, I found some code that you gave someone else for the same issue on a different page and it worked. The code I used was:

<style>
  .grid-image-wrapper {
    padding-bottom: 56.25% !important;
}
</style>

Nevertheless, thank you for your help!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.