Forum Discussion

scottmangold's avatar
scottmangold
Community Member
6 years ago
Solved

Embed iFrame Height

Greetings - is there a way to adjust the 'height' or 'min-height' attribute of an iframe when using the embed block?  When I try inserting a height attribute into the iframe source, the iframe expands to fit the entire height of the page.

Thanks!

  • Hello everyone,

    I'm happy to share that we've just released a new update for Rise 360.

    We've released a fix for:

    • Embedded blocks displayed excess space below a full web page.

    There's nothing to install for web-based apps, as new features and fixes are immediately available.

    Please let us know if you need any additional help! 

12 Replies

  • KarlMuller's avatar
    KarlMuller
    Community Member

    Hi Scott,

    Can you post the iframe code here for us to look at?

  • scottmangold's avatar
    scottmangold
    Community Member

    Hi Karl, thanks for your reply.  I think I discovered the answer right after hitting send.

    First, I tried entering only a height declaration only using iframe height attribute:

    <iframe src="https://www.blah.com/index.html" height="600"></iframe>

    I also tried appending the height declaration with px, even though this is not in the html spec (but it is observed in the following Rise article). Both of these resulted in the iframe running off the length of the page vertically (see attachment).

    Second, I tried css style attributes.  CSS styling would be my preferred method:

    <iframe src="https://www.blah.com/index.html" style="height: 600px; width: 600px;"></iframe>

    This resulted in the style code being ignored and removed from the iframe markup.

    Finally, I was successful when using both height and width iframe attributes:

    <iframe src="https://www.blah.com/index.html" height="400" width="400"></iframe>

    The last thing I discovered is that these properties do not control the size of the frame in a traditional 'absolute pixel value' sense.  They seem to define a fixed aspect ratio to responsively render the iframe. So using height="1" with="1" renders the same as height="400" with="400".

    Thanks!

  • Hi Scott!

    Using the last iframe code you shared, did you try adjusting the Embed Width setting? It looks like you were using the Full Width setting in your screenshot, which scales up the iframe to fill the width of the container. 

  • Hi, 

    I embedded a question in rise 360 and when I modified the size in the iframe I have to leave a greater height that I want to (which shows a lot of unwanted white space on the computer view), so that the phone view shows all the options of the question (see attachment). Is there a way to get all the options of the question in both views without having to add so much white space in the computer view?

    As you will see in the code, we don't want to see the scrolling bar because it is distracting for just one simple question.

    Here is the code that I am using: 

    <iframe src="https://ufl.qualtrics.com/jfe/form/SV_daN44sV8shM3noO" height="1" width="1.5" scrolling="no"></iframe>

  • AnthonyGoss's avatar
    AnthonyGoss
    Community Member

    This is why having control over the responsiveness of the different screen sizes would be useful.  I know one of the appeals of Rise is that it works without having to worry about responsiveness.  However, the lack of customization on responsiveness by the end user leads to unexpected results.

  • Hi folks, thanks for letting us know about this issue. We have this documented as a possible bug, and we'll let you know here once we have updates. Hang tight!

  • KaylaTorontow's avatar
    KaylaTorontow
    Community Member

    Checking in to see if Articulate has any updates on this? See the comment from Lea from 4 months ago and eager for a solution too! Thanks!

    • Crystal-Horn's avatar
      Crystal-Horn
      Staff

      Hi there, Kayla. No updates on this from the Rise 360 side. The workaround for now is to experiment with the height and width attributes until you find a combination that displays best.

  • JMAA's avatar
    JMAA
    Community Member

    Staff here are incorrect. Width and Height are not attributes supported in the embed block with iframes. Hope this helps folks being given the run around.

  • Hello everyone,

    I'm happy to share that we've just released a new update for Rise 360.

    We've released a fix for:

    • Embedded blocks displayed excess space below a full web page.

    There's nothing to install for web-based apps, as new features and fixes are immediately available.

    Please let us know if you need any additional help!