Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird offset under IFrame
Message
From
25/09/2012 14:09:59
 
 
To
All
General information
Forum:
HTML5
Category:
Other
Title:
Weird offset under IFrame
Miscellaneous
Thread ID:
01553612
Message ID:
01553612
Views:
62
Can someone try this code and let me know if you also have an offset of three pixels after the IFrame and the next cell, which contains Test?
<!DOCTYPE HTML>

<html>

<head>
<Base HRef="http://localhost/YourWebSite/"></Base>
<Style>
BODY
{
   Padding-Top: 0px;
   Padding-Left: 0px;
   Padding-Right: 0px;
   Padding-Bottom: 0px;
   Margin-Left: 0px;
   Margin-Right: 0px;
   Margin-Top: 0px;
   Margin-Bottom: 0px;
}
</Style>
</head>

<body> 

<table cellspacing=0 cellpadding=0>
<tr>
<td height="22">
<iframe src="YourPage.aspx" frameBorder="0" scrolling="no" width="100%" height="22"></iframe>
</td>
</tr>
<tr>
<td>
Test
</td>
</tr>
</table>

</body>
</html>
Simply replace YourPage.aspx with one that is valid. If you want to see it more clearly, you can add Border=1 in the table tag as well as replacing frameBorder=0 with frameBorder=1. You will see there is a 3 pixels gap between the two. I have the same all over the entire setup. I just provided a simple version to test with. I have the same with IE, Firefox and Chrome.

There must be something I am missing. This is cause by the IFrame tag. If you remove it, the gap is gone. So, this is related to that. I also try to add the four additional attributes to the tag such as vspace, hspace, etc. to be all equal to 0. This doesn't change anything.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform