-1

I'm attempting to run this iframe in HTA, but although I put the height as 100%, it's only showing up as about 30% for some reason. I'm new to HTA but it's mostly the same as HTML. How can this work? Thanks in advance ~

<!DOCTYPE html>
<title> Test iframe </title>
<head>
<iframe src="http://cyberh1.xyz/paste/index2.php" style="border:1px blue solid;" name="frame1" scrolling="auto" frameborder="yes" align="center" height = "100%" width = "100%">
</iframe>
 </head>

Screenshot

CyberhiT
  • 33
  • 1
  • 1
  • 7

1 Answers1

1

You would need to set the html, body and iframe to have a width and height of 100%:

<style>
html,
body,
iframe {
width: 100%;
height: 100%;
}
</style>

Like @Terry said though, you are missing the body which the iframe should be within.