WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to center an embedded video on the homepage (1 post)

  1. 2273RECORDS
    Member
    Posted 2 years ago #

    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic