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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.