leandros21 Posted December 6, 2014 Share Posted December 6, 2014 I have to add an image looks like a frame and inside of frame a youtube iframe video, the problem is that does not fit in any way i tried and is not responsive too. This is the container of the iframe<div class="video fluid-width-video-wrapper" data-ratio="16:9"> and its css codebackground: url('http://example.tv/wp-content/uploads/2014/11/screen-frame-v1.png') no-repeat;width: 100%; position:relative; padding:0; background:#000; height:600px; and here is the iframe<iframe title="YouTube video player" width="706" height="304" src="http://www.youtube.com/embed/abcd1234?wmode=opaque&rel=0&showinfo=0&modestbranding=0" frameborder="0" allowtransparency="true"></iframe></div> iframe's css below: position: absolute; padding-bottom: 56.25%; padding-top: 30px; overflow: hidden;Can somebody helps me please? I added the frame for better results Quote Link to comment Share on other sites More sharing options...
fidgetwidget Posted December 7, 2014 Share Posted December 7, 2014 The screen area isn't quite evenly divided for some reason... but make sure you pad with %values to ensure it will be responsive. Hope this helps: http://jsbin.com/yetayawema/1/edit?html,output Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.