0

I'm trying to embed a video inside an image, the challenge is that the page is responsive. The video looks in place on full screen, however it moves out of the box when resolution changes.

So I want the video to be inside the image frame at all sizes. Should I use @media or is there another way?

<div class="col-md-4">
    <img class="img-responsive" style="width:344px;height:780px"
        src="Images/mywork-images/cicis/cicis-mobile.jpg">
    <div class="player">
        <iframe src="https://player.vimeo.com/video/139805324"
            width="290" height="290" frameborder="0"
            webkitallowfullscreen mozallowfullscreen
            allowfullscreen></iframe>
    </div> 
</div>
.player{
    position: relative;
    height: 0;
    bottom: 565px;
    left: 21.3%; /* 110px */
}
spenibus
  • 4,339
  • 11
  • 26
  • 35
MuaathAli
  • 117
  • 4
  • 15

0 Answers0