Jump to content

Set minimum height for captions of embedded youtube videos

Recommended Posts

Site URL: https://www.merlinsheldrake.com

I want to position a series of embedded youtube videos in a regular grid, two videos per row. When I do this the videos form an irregular grid because the captions are different lengths and cause the videos to offset. I overcame a similar problems with an image grid by using code in the custom CSS box that specifies a minimum height for the caption. I wonder if there is something similar that can be done for the video captions? 

Here is the code that sets the minimum height for the image captions: 

 

.image-card.sqs-dynamic-text-container {
    min-height: 220px;
}

 

Any help most welcome, thank you. 

Link to comment
  • Replies 2
  • Created
  • Last Reply

Could you show the page where the youtube videos are?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.