XF 1.5 Bigger YouTube embed?

cayne

Member
When I use an embed like this one


The window is super tiny. Is there a way to load it in a bigger window (maybe custom size)?

I tried to search for this, but haven't found a thread for this issue.

Thanks in advance.
 

Mark T

Active member
Yes, there is a simple way to make all videos fully responsive. In extra.css.

I am at work atm, but I will find it when I get home.
 

Brogan

XenForo moderator
Staff member
You would just edit the bb code media site embed HTML to make the video larger.

For responsive video, you need to wrap the embed HTML with a div and class then add something like this to EXTRA.css:
Code:
.ctaResponsiveVideo
{
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.ctaResponsiveVideo iframe
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
}
 
Top