Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

responsive youtube videos? #214

Open
relipse opened this issue Mar 5, 2016 · 3 comments
Open

responsive youtube videos? #214

relipse opened this issue Mar 5, 2016 · 3 comments

Comments

@relipse
Copy link

relipse commented Mar 5, 2016

Hello, I'm trying to embed youtube videos and I used data-featherlight="<iframe...." but for some reason it shows at a huge width, with a smaller browser it gets cut off. Any ideas.

@lplohmann
Copy link

Same happened to me. In my case, .featherlight-content margins were set to 10% (.featherlight .featherlight-content, margins are declared at line 61), but its width to 90% (.featherlight-iframe .featherlight-content, width declared at line 125). You should adjust one or another so they add up to 100%.

@robneu
Copy link

robneu commented Apr 5, 2016

Duplicate of #188

@niente0
Copy link

niente0 commented Dec 16, 2020

I solved my responsive video issue with this css:

.featherlight-content {
max-width: 1024px;
max-height: 576px !important;
width: 96vw;
height: 54vw; /* NOTE: vw instead of vh */
}

IFRAME.featherlight-inner {
width:100%;
height:100%;
max-width: 1024px;
max-height: 576px;
}

Remember to remove any data-featherlight-iframe-width and data-featherlight-iframe-height attributes from the A tag!

Cheers!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants