Center YouTube embeds

  • Author
  • #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: (visible only to logged in users)

    Theme Author


    Please try this CSS:

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

    Original poster

    Perfection – thank you soooo much for your responsiveness!!

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