-
AuthorPosts
-
November 4, 2015 at 5:49 am #721360
How to insert a video in an article for mobiles responsive manner?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 4, 2015 at 6:25 am #721366Hi
You can use a css class for this purpose
Try to take a look HERE
You can add this to your custom.css file
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}and embed video into your article with the code below
<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 4, 2015 at 6:25 am #753701Hi
You can use a css class for this purpose
Try to take a look HERE
You can add this to your custom.css file
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}and embed video into your article with the code below
<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>November 5, 2015 at 3:13 am #721527Sorry I do not work I do not know what I’m doing wrong
November 5, 2015 at 3:13 am #753778Sorry I do not work I do not know what I’m doing wrong
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 5, 2015 at 6:33 am #721548<em>@vertigoflow 500863 wrote:</em><blockquote>Sorry I do not work I do not know what I’m doing wrong</blockquote>
Hi
I used the suggested code in this article ” Video Nacional: Nunca te dir? Adi?s – Boomper” and as you can see it is working fine.
you didn’t added video into the <div class=”videoWrapper”>
Please check again
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 5, 2015 at 6:33 am #753795<em>@vertigoflow 500863 wrote:</em><blockquote>Sorry I do not work I do not know what I’m doing wrong</blockquote>
Hi
I used the suggested code in this article ” Video Nacional: Nunca te dir? Adi?s – Boomper” and as you can see it is working fine.
you didn’t added video into the <div class=”videoWrapper”>
Please check again
November 6, 2015 at 1:24 pm #722526Thanks, I found my mistake.
I placed: https: //
and he was right: htpp: //
thousand thanks
November 6, 2015 at 1:24 pm #753908Thanks, I found my mistake.
I placed: https: //
and he was right: htpp: //
thousand thanks
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by vertigoflow 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum