Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


titleSample Script When iFrame Size is Fully Defined
<!DOCTYPE html>



<div style="width: 500px; height: 500px;">

<iframe src="
style="border:0px; max-width: 100%; max-height: 100%;" marginheight="0" marginwidth="0" scrolling="no" allowfullscreen width="500" height="500" >


Please note that modern browsers are using HTML5 standard, thus older standards like HTML 4 are not being recognised by some browsers (e.g. Safari on iOS). Properties like width and height are deprecated in modern browsers. Users can use our function in order to automatically resize the iframe on detected devices like iPhone for example or they can modify their CSS for width and height values.