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

Offer the aspect-ratio property approach #51

Open
edjw opened this issue Aug 2, 2022 · 0 comments
Open

Offer the aspect-ratio property approach #51

edjw opened this issue Aug 2, 2022 · 0 comments

Comments

@edjw
Copy link

edjw commented Aug 2, 2022

Amazing tool. Used it many times.

Any chance of offering the option of the aspect-ratio property approach along the lines of this article?
https://dev.to/deammer/embed-responsive-youtube-videos-in-2021-5dkh

<style>
.video {
  aspect-ratio: 16 / 9;
  width: 100%;
}
</style>

<iframe
  class="video"
  src="https://www.youtube.com/embed/msizPweg3kE"
  frameborder="0"
  allow="accelerometer; autoplay; encrypted-media; gyroscope;"
  allowfullscreen></iframe>
  
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

No branches or pull requests

1 participant