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

Centering embedded videos


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?

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>