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

Centering embedded videos

Stimo

Active member
#1
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
#2
Admin CP > Media Sites > YouTube

Change the embed code to:

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