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
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 years later...
On 7/4/2024 at 9:35 PM, DoppyG said:

Anyone have a suggestion for centralising embedded social media posts on blogs? I tried for this page https://www.opportunitygreen.org/blog/positive-climate-stories-in-june


div#block-yui_3_17_2_1_1720100407292_5135 {

text-align: center;
}

 

and 

 

.fu-block-yui_3_17_2_1_1720100407292_5135 {

text-align: center;
}

If you mean Twitter Feed, use this CSS code

div.twitter-tweet.twitter-tweet-rendered {
    margin-left: auto;
    margin-right: auto;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.