Iframe hiding content

Asked

Viewed 944 times

1

I have a iframe which receives "interactions.php" which is a select. But the iframe hides content on account of height="100%". If I put height=20000px; he shows everything.

How can I make everything appear automatically?

I do not want to put a fixed height, because it either makes the content be small or large, will according to what has in select.

HTML:

 <iframe src="interacao.php" width="100%" style="height:100%; min-height:900px;" frameborder="0" scrolling="no"></iframe>
  • You could enable scrolling?

  • Thank you for replying Abriel. It would not be ideal to enable the scroll. The interesting is the automatic height :/

1 answer

1

Do it this way:

   <iframe src="http://suaurl.com.br"  style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">
        Your browser doesn't support iframes
    </iframe>

In this case, it will display 100% width and 100% height.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.