Support » Fixing WordPress » How to center an embedded video on the homepage

  • Hey, I’m hoping this is an easy fix and I’m just overlooking something simple, but I’m really not too educated on the whole coding thing. Nevertheless, I am attempting to vertically and horizontally center a video on the homepage of my site, 2273records.com

    As I’m sure you can see, the video is only horizontally centered based on some line of code I basically googled. I am wondering if there is any way to vertically center the video as well? Any help would be greatly appreciated, I’m super lost.

    The current code of the page is as follows:

    <?php
    /*
    Template Name: Home
    */
    ?>

    <?php get_header(); ?>
    <!–Arrow Navigation–>

    <table style=”width: 100%;”>
    <tr>
    <td style=”text-align: center; vertical-align: middle;”>
    <iframe width=”560″ height=”315″ src=”//www.youtube.com/embed/fHLG9x4q9qE?list=UUN2IjSzpeKuOX-NTFVwp1YA” frameborder=”0″ allowfullscreen></iframe>
    </td>
    </tr>
    </table>
    <?php get_footer(); ?>

  • The topic ‘How to center an embedded video on the homepage’ is closed to new replies.