-
Notifications
You must be signed in to change notification settings - Fork 987
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
Setting proposal: padding-top #150
Comments
I'm not sure I understand what you need? Are you trying to set a maximum height or aspect ratio? If you're doing this by hand, you could just fudge the height/width attributes to get calculate the percentage you want: var aspectRatio = (height / width) * 100 + '%'; |
For Vimeo videos, the only embeds I've used with FitVids, I've consistently found setting |
This is not the same as #152 unless the rounding errors can be greater than 10s of pixels. From #152 it seems more like off by a pixel in the case of odd division by 2 rounding issues. I can confirm setting padding-top to 56% eliminates all the issues for vimeo. To get around this, I just have a vimeo-specific wrapper and use css and !important to override the element style. |
Thesis
Based on my findings in this comment, specification of
padding-top
percentages perfitVid()
instance should be allowed.Discussion
The text was updated successfully, but these errors were encountered: