Support

Account

Home Forums Front-end Issues oEmbed Facebook video: data-width="0" Reply To: oEmbed Facebook video: data-width="0"

  • hi in a post I create a video field with acf embed to embed a video from facebook but does not take me the full width of the container.

    code single.php

    <div class=”video-container”>
    <?php echo get_field(‘video_content’) ; ?>
    </div>

    css code

    .video-container {
    position: relative;
    padding-bottom: 45.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    margin-bottom:20px;
    }
    .video-container iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    }

    someone knows how to solve
    thank you