How to get height=100% on <object> Embed

user2261793 picture user2261793 · May 16, 2013 · Viewed 57.2k times · Source

I'm trying to insert the following code but it is not working. I am not able to get 100% height with this. Can anyone help me? Thanks!

<body style="overflow:hidden;">
<TABLE align=left width=234 border="0" cellpadding="0" cellspacing="0">
<TR>
    <TD valign=top align=center WIDTH="234" >
        <object data="EmbedPage.html" type="text/html"  style="width: 230px;height:100%;"></object>
    </TD>
</TR>
</TABLE>
</body>

Answer

tak3shi picture tak3shi · Mar 11, 2019

Use 100vh for height, if you want to span the embed-object over the full-screen.

<body>
   <object data="EmbedPage.html" type="text/html"  style="width:100%;height:100vh;">
   </object>
</body>