Center YouTube embeds
- The topic ‘Center YouTube embeds’ is closed to new replies.
Need help? Check out our Support site, then
Hi, I’m trying to center a YouTube embed on my home page (the secondary page that makes up the home page content). I’ve tried lots of CSS adjustments such as wrapping it in another centered DIV and putting
.wp-block-embed-youtube {
margin: 0 auto;
}
in the Additional CSS. Any advice would be appreciated – thanks!!
The blog I need help with is: (visible only to logged in users)
Hi,
Please try this CSS:
.wp-block-embed__wrapper { margin: 0 auto; max-width: 760px }
Perfection – thank you soooo much for your responsiveness!!