1

I tried to make an IFrame height to 100% (like a <div> to height:auto).

I set the height attribute in <iframe> tag to 100% and set height in style to 100% too, but it doesn't seem to be working.

Then, I tried to use JavaScript and JQuery to get the height of <iframe> contents, but because of browser security reasons, it didn't got the height of content

How can I solve this? I spent all day to solve this problem.

NathanielSantley
  • 299
  • 1
  • 16
Mike
  • 181
  • 2
  • 12

1 Answers1

0

The iFrame attribute does not support percent in HTML5. It only supports pixels. So your problem is solved using pixel value.

How do you give iframe 100% height

http://www.w3schools.com/tags/att_iframe_height.asp

Community
  • 1
  • 1
Black Mamba
  • 13,632
  • 6
  • 82
  • 105