The perfect solution and walkthrough Mark, appreciated as always!
Test of youtube embeds
-
@Madchatthew no, you just need to be in NodeBB root
-
-
This is a nice embed plugin but…the size of the embed is very small. I used one in the past that was bigger but cannot remember which one
-
@Sampo2910 nothing that CSS can’t fix
-
@phenomlab I have the exact same issue.
-
@phenomlab Can you enlighten me with some please
Not in my skill set.
-
@Sampo2910 @jac you just need to target the
iframe
itself (be aware that this will affect all other iframes, so you may want to be more specific if need be). Something like this will work - just play with theheight
andwidth
values to get the desired result.iframe { height: 400px; width: 400px; }
-
@phenomlab Perfect …Thank you.
-
@phenomlab said in Test of youtube embeds:
be aware that this will affect all other iframes, so you may want to be more specific
Is there a way that we can only be specific to this embed?
-
@Sampo2910 yes, you could try
iframe[src*="youtube"] { height: 400px; width: 400px; }
This is of course an example that looks for “youtube” in the
src
string. You’d need to adapt it as necessary. The only other way possible here would be to assign adiv
ID to the container but that would require a change to the underlying plugin code.If you need to apply this to mobile only views, it’ll be to be
@media (max-width: 767px) { iframe { height: 370px; width: 360px !important; } }
-
@phenomlab Perfect!!! Many thanks.
Did this solution help you?
Related Topics
-
-
Composer Zen icon?
Solved Configure -
-
-
-
-
-
Iframely (Nodebb)
Solved Configure