# Integration TryInteract Quiz / Can someone help with the code?

**URL:** <https://community.sitejet.io/t/integration-tryinteract-quiz-can-someone-help-with-the-code/1931>\
**Category:** Integrations and Third Party Tools\
**Tags:** cms\_integration\
**Created:** [August 17, 2022, 5:47pm UTC](https://community.sitejet.io/t/integration-tryinteract-quiz-can-someone-help-with-the-code/1931 "2022-08-17T17:47:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barbara\_Bichler](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/barbara_bichler/32/3745_2.png) [@Barbara\_Bichler](https://community.sitejet.io/u/Barbara_Bichler)\
**Post date:** [August 17, 2022, 5:47pm UTC](https://community.sitejet.io/t/integration-tryinteract-quiz-can-someone-help-with-the-code/1931/1 "2022-08-17T17:47:06Z")

</div>

I integrated a Quiz (via iframe). The quiz works but there is a sizing problem.  
The thing is, that the quiz questions have different numbers of answers (from 3 to 12).  
If I set the hight fix to maximum (what I need for 12) the quiz starting frame is way too big with too much white space underneath.

[www.barbara-bichler.de/quiz](https://www.barbara-bichler.de/quiz)

So as a non coder I googled the javascript code in order to get it scalling size depending on how much space is needed to show all 12 answers. But at some point it always gets a scroll bar within the iframe.

The iframe code below is from Tryinteract for the quiz.  
The bold Code area is the script I’ve googled.

Can someone help me with this working is planned, please?

Thanks a lot.

Barbara

---

<div class="post-metadata">

**Author:** ![Martin.Sitejet.Team](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/martin.sitejet.team/32/25_2.png) [@Martin.Sitejet.Team](https://community.sitejet.io/u/Martin.Sitejet.Team)\
**Post date:** [November 7, 2022, 9:12am UTC](https://community.sitejet.io/t/integration-tryinteract-quiz-can-someone-help-with-the-code/1931/2 "2022-11-07T09:12:14Z")

</div>

Hi @Barbara_Bichler,

maybe this could help you:

> <https://stackoverflow.com/questions/819416/adjust-width-and-height-of-iframe-to-fit-with-content-in-it>

---

<div class="post-metadata">

**Author:** ![Andre](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/andre/32/3459_2.png) [@Andre](https://community.sitejet.io/u/Andre)\
**Post date:** [August 20, 2024, 10:43am UTC](https://community.sitejet.io/t/integration-tryinteract-quiz-can-someone-help-with-the-code/1931/3 "2024-08-20T10:43:07Z")

</div>

Closed on August 20, 2024, 10:43am UTC


