Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Allow responsive Iframes and make sure, Images won't break the layout #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcshake
Copy link

I think, Skeleton is almost perfect. Small, easy to use and everything. But when it comes to use Iframes, you're lost. This non-js-div-solution will allow to use Iframes in a responsive manor. You can even use these fluidMedia-Containers in columns etc.

@badcat
Copy link

badcat commented Jul 12, 2018

Nice - does this work with various proportion media such as YouTube's 4:3 vs. 16:9 vs 21:9 and so on?

@marcshake
Copy link
Author

Not really - although you might setup several classes for ratios.

.fluidMedia {
padding-bottom: 56.25%;

56.25 is nothing else than 9:16 * 100 - so for 4:3-ratio you might use 75% (3:4*100) etc.

But I use a lot of youtube/vimeo-clips at my website (trancefish.de) and the 56.25%-ratio looks great everytime.

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

Successfully merging this pull request may close these issues.

None yet

2 participants