Last active
November 11, 2022 06:02
-
-
Save mikeott/9622c9ff5f44a69f24c4059df522eb87 to your computer and use it in GitHub Desktop.
Force 16 x 9 CSS attribute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( document ).ready(function() { | |
| var width = $('iframe').width(); | |
| $('iframe').css({ | |
| 'width': width, | |
| 'height': width*(9/16) | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment