Skip to content

How to change the height of an iframe? #939

Discussion options

You must be logged in to vote

As an alternative you can use the viewport height to style the iframe, this should automatically resize it according to it's content.

<iframe src="../media/h5p/file.html" width="100%" style="height: 100vh;"></iframe>

HTH 🙂

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@digi-tales
Comment options

@schulle4u
Comment options

Answer selected by digi-tales
@digi-tales
Comment options

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