Cannot centre align a YouTube video using Yoko theme

  • Unknown's avatar

    Hi there,

    I am having a terrible time trying to centre align a YouTube video. I have tried several snippets of code including…

    <div style=”text-align:center;”>[youtube=http://www.youtube.com/watch?v=tKWkdfcrcNI&w=420&h=315]</div>

    Please can you help?
    Nicola.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,

    It appears that theme doesn’t center embedded videos by default. I’m looking at other solutions for you, and will report back shortly.

  • Unknown's avatar

    Okay, I was able to get the video to center without using custom CSS by using the following code in your text editor window:

    <table style="margin:0 auto;">
    <tr>
    <td>[youtube=http://www.youtube.com/watch?v=tKWkdfcrcNI&w=420&h=315]</td>
    </tr>
    </table>

    Note that what you want to do is create a table that’s centered, and then insert your youtube link inside that.

    I was unable to remove the border.

    If you want more control over this, you can purchase the Custom Design upgrade so you can modify your CSS, and then for help with the code itself, you can post in the CSS Customizations forum.

  • Unknown's avatar

    Fantastic Jackie! That worked a treat. I don’t mind the border at all :)

    Thanks so much. Super service.

    Nicola.

  • Unknown's avatar

    Hi Nicola,

    Glad I could help! It was a bit of a stumper for me as well. :)

  • The topic ‘Cannot centre align a YouTube video using Yoko theme’ is closed to new replies.