1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Centering embedded videos

Discussion in 'Styling and Customization Questions' started by Stimo, Aug 21, 2012.

  1. Stimo

    Stimo Active Member

    Hi when i post a youtube video it auto embeds which is great, but it places it to the left of the post, is there a way to it embeds it centre automatically?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Admin CP > Media Sites > YouTube

    Change the embed code to:

    <div align="center"><iframe width="500" height="300" src="http://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
    Neil E. likes this.
  3. Stimo

    Stimo Active Member

    Chris D likes this.

Share This Page