Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
100 viewport height units to make an iframe fit or fill 100% of its container’s remaining height – Sikwati - via http://sikwati.com/blog/make-iframe-fit-container-height/
<iframe src="/sample.pdf" width="100%" style="height: 100vh;"></iframe>
@m-hume

This comment has been minimized.

Copy link

@m-hume m-hume commented Apr 27, 2021

Nicely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment