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,

    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:

    Template Name: Home

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

    <table style=”width: 100%;”>
    <td style=”text-align: center; vertical-align: middle;”>
    <iframe width=”560″ height=”315″ src=”//” frameborder=”0″ allowfullscreen></iframe>
    <?php get_footer(); ?>

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