cancel
Showing results for 
Search instead for 
Did you mean: 

iframe Height

kxie
Cosmonaut

Is there a way to set up an iframe with dynamic height such that the embedded page fills the entire rich text insight?

I am able to make the width dynamic by setting the width to 100% but the same does not work for the height. 

5 REPLIES 5

JoeM
Community Manager
Community Manager

@kxie  - Could you try using the following: 

style="height: 100vh;"

 

I have tried this but I get the same result as I do with height = 100%. The iframe ends up being just tall enough to see past the top bar on the webpage. 

JoeM
Community Manager
Community Manager

@kxie Could you share your embed code (feel free to remove URL)?

Here is the code I currently have in my dashboard. I have the height hardcoded to 500 at the moment because the dynamic options I've tried don't work.

<div><iframe src="url_here" width="100%" height="500">
</iframe></div>