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="{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>