Center YouTube embeds

  • Author
    Posts
  • #163616

    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 mawconsultingllc.com.

    #163659

    anhtnt
    Theme Author

    Hi,

    Please try this CSS:

    .wp-block-embed__wrapper { margin: 0 auto; max-width: 760px }

    #163667

    Perfection – thank you soooo much for your responsiveness!!

The topic ‘Center YouTube embeds’ is closed to new replies.