Viewing 1 replies (of 1 total)
  • Plugin Author stefanoai

    (@stefanoai)

    Hi Jacob, if you use shortcode on text-editor, you can set

    [youtube video=_9tBFVKhn5o maxw=300 style="margin-right:auto;margin-left:auto;display:block"]

    or set paragraph style to center withe buttom of content editor (TinyMCE) and put the only

    [youtube video=_9tBFVKhn5o maxw=300]

    .
    “300” it’s just one example, you can specify the better max-width for your case.

    Other solution, can be set the css style on the template and set css class on the shortcode
    [youtube video=idvideo class=mynameclass]

    and on file css

    .mynameclass{
    max-width: 300px;
    margin-left:auto;
    margin-right:auto;
    display:block
    }

Viewing 1 replies (of 1 total)
  • The topic ‘How to force video to center align.’ is closed to new replies.