CMS Development

ISohail
Member

Showing Hubspot page in iframe, height issues

SOLVE

Hi,

 

We have a page in Hubspot with a banner image (height - 66%) and content below it. We are showing this page in our application inside an iframe. Just before loading we are hiding the header and footer from Hubspot page through script. Post this the image gets zoomed in and covers a large portion of the page. How can we control the height of the image and the overall iframe content?

1 Accepted solution
jonchim
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Showing Hubspot page in iframe, height issues

SOLVE

Hey @ISohail ,

Typically iFrames are a bit finnicky when it comes to adjusting the container height, etc. Do you have a link to the page so can see where the issue is?

 

You may have to just define a height on the <iframe> tag.






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution

View solution in original post

0 Upvotes
2 Replies 2
jonchim
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Showing Hubspot page in iframe, height issues

SOLVE

Hey @ISohail ,

Typically iFrames are a bit finnicky when it comes to adjusting the container height, etc. Do you have a link to the page so can see where the issue is?

 

You may have to just define a height on the <iframe> tag.






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Showing Hubspot page in iframe, height issues

SOLVE

Hi, @ISohail 👋 Thanks for reaching out. Hey, @jonchim @RMones, do you have any feedback or tips you can share with @ISohail? Thank you very much!  — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot