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

Embed: adjust width of iframe and inline toolbar. #721

Merged
merged 1 commit into from
May 11, 2017

Conversation

mtias
Copy link
Member

@mtias mtias commented May 9, 2017

image

@jasmussen is there any other approach for responsive videos these days without having to know aspect ratio?

Closes #550

@mtias mtias added the [Feature] Blocks Overall functionality of blocks label May 9, 2017
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 16:9 */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a hack to place the video for now

@jasmussen
Copy link
Contributor

Nope, not that I know of. The padding trick is still the one I'd use, so 👍 from me.

The problem is that iframes have no intrinsic aspect ratios, like a raw image has, so we have to set the height somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants