Jump to content

How to center a video to middle of embed block?

Recommended Posts

Following the conversation in this thread, I changed the aspect ratio of my video to portrait: 

 

The problem now is that the video is aligned to the left of the embed block with tons of space on the right. How do I center the video in the middle of the block?

Thank you!

 

 

Screen Shot 2022-06-02 at 1.45.59 PM.png

Link to comment

Try adding this to Design > Custom CSS

iframe[src*="youtube"] {
	margin: 0 auto !important;
}

If it doesn't work, please share link to page where you added embed block.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 6/9/2022 at 4:41 AM, mallorycs said:

@tuanphan @MaryPhilip_

That code is not working. 😞

Here is the page: https://www.sundayschoolwine.com/contact

Use this code

div#block-yui_3_17_2_1_1654724372081_4385 div {
    text-align: center;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.