How do I center YouTube videos using css?

  • Unknown's avatar

    I like my images and videos to automatically expand to fill the entire width of a post. My videos used to do that but now they are floating to the left and I have been unable to get them to fill the post width or center. See http://toddlohenry.com/2014/04/09/are-you-sabotaging-yourself/. Any thoughts?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello Todd, When I click on the link you sent, your video appears centered, and takes up the width of your Post’s main column:

    Screen Shot 2014 04 11 at 3 28 54 PM

    Did you manage to figure out the issue, or are you viewing the post in a different manner?

    If you are still unhappy with the formatting, please send me a screenshot, so I can better understand the issue. You can upload the screenshot to your Media Library, like any other image, and I’ll be able to access it from there. Just drop me a line when there’s a file I should look at.

    The page at the following link has some helpful tips for taking screenshots:

    Take a Screenshot

    Thanks so much!

  • The topic ‘How do I center YouTube videos using css?’ is closed to new replies.