Skip to content
Sarfraz KhanScripts, Applications, Tools & Stuff
  • About Me

Tip: iframe relative width and height

  • Post author By Sarfraz Khan
  • Post date July 4, 2018
  • Categories In Blog, C-Sharp, CSS

<iframe src="https://somesite.com/somepage.aspx" onload="this.width=screen.width - ((screen.width &lt;= 768) ? 100 : 500); this.height=screen.height - 100">

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

© 2022  Sarfraz Khan