How to embed in a CSS modal iframe or pdf to full dynamic (responsive) height? #3323
Unanswered
frederikhors
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Tailwind CSS for a modal (similar to Bootstrap's one).
What I do not understand is how to embed objects (iframe, pdf) to modal body's full height (which is dynamic based on screen height).
Example: https://play.tailwindcss.com/dxKwbYilfD
I think this is not only a problem with Tailwind, is between CSS and myself! :)
As you can see I'm using
height="100%"
here but I need something likemin-height: 100%
which obviously is not working here.What is working is
height:-webkit-fill-available
but is unusable on each browser because of-webkit
part.How to do here? I searched a lot without results.
Beta Was this translation helpful? Give feedback.
All reactions