Tagged: video
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
March 7, 2016 at 6:30 pm #896177
Hi
I want to add a video from YouTube in an article with 640px width (as picture) but it’s not responsive.
How can I add it to video changes dimensions authomatic?
Thank you.pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 7, 2016 at 7:12 pm #896193Hi
Inside your custom.css file add this
.rwd-video { height: 0; overflow: hidden; padding-bottom: 56.25%; padding-top: 30px; position: relative; } .rwd-video iframe, .rwd-video object, .rwd-video embed { height: 100%; left: 0; position: absolute; top: 0; width: 100%; }
Then to incorporate iframe use this into the article
<div class="rwd-video"> <iframe width="640" height="315" src="https://www.youtube.com/embed/5Yvfa54j4T0" frameborder="0" allowfullscreen></iframe></div>
Best regards
-
1 user says Thank You to pavit for this useful post
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 1 reply, has 2 voices, and was last updated by pavit 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum