This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Iframe space problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Iframe space problem" Watch "Iframe space problem" New topic
Author

Iframe space problem

shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Hi,
I am using a iframe for showing the context menu. In Iframe I have a <table> with the structure like this
<iframe>
<html>
<head>..... </head>
<body>
<table id="contextmenu">..... </table>
</body>
</html>
</iframe>

at runtime, I am setting the iframe's height equal to table('contextmenu')'s offsetheight. Now the problem is, when I display this iframe on request of context menu, it displays some space under the table. If I enable the border of that iframe and table, table's height is less than iframe's height though we have set them equal.
What can be the reason.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Iframe space problem