473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

IFRAME height problem... anybody, help?!?

Hi all,

at first : "Thanks in advance for taking the time to read all this!"

I'll start with a piece of my source code, to introduce my little
problem, which looks like this...

--------------------------------------------------------

<table cellspacing="0" cellpadding="0" height="100%">
<tr>
<td height="118" style="height: 118px;">
&nbsp
<img src="menu-transparant.gif" class="menu">
<img src="plaatjes/menu/logo.gif" class="logo">

<img id="menu_1">
<img id="menu_2">
<img id="menu_3">
<img id="menu_4">
<img id="menu_5">
</td>
</tr>
<tr>
<td>
<iframe src="home.php" name="content" height="100%">
</iframe>
</td>
</tr>
</table>

----------------------------------------------------------------

Yesss... that's right!!! It's just plain HTML, for a change!

Now, this is a table, containing two cells beneath eachother. The first
one holds a menu, initialized by some JavaScript I did. The second one
holds an Iframe, with height set to 100%.

Since the graphics of this site must fit precisely to one and other, I
figured I'd size the first tablecell (to a height of 118px), so that
the second cell would determine the height of the Iframe, which shoud
be 100% of the cell it is in.

This works great with IE, but unfortunately Mozilla and Netscape spoil
my beautifull Idea...

The reason I chose to do this in only HTML is that, when I resize my
window during my visit to this site, the Iframe automaticly scales
along with the window, keeping the graphics in tact.

But if there's anyway to do this in JavaScript, it'll be fine with me
to! :)

I've set up an example at : http://www.centraalq.nl/publictest, so test
it under IE, an mozilla if you like.

PLEASE!!! HELP ME!!! I'M (quite) DESPERATE!!!! :-S

Jul 23 '05 #1
1 1424
VK
> The reason I chose to do this in only HTML is that,
when I resize my window during my visit to this site,
the Iframe automaticly scales along with the window,
keeping the graphics in tact. But if there's anyway to do this in JavaScript,
it'll be fine with me to! :)


Yes, this problem could be "ugly up" (cannot pronounce "solved") by
using JavaScript (dynamically recalculate table parts size on on each
load/resize).

But it's completely unnecessary, as can be reached by pure HTML. I
suggest to repost your problem at
<comp.infosystems.www.authoring.html>, they should help you.

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I...
12
by: wangzx | last post by:
I am the author of easyajax.sourceforge.net, and I have a problem on Firefox 1.5, I post the problem here and hopes somebody help me. The test page can be:...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
1
by: Dave | last post by:
Usual apologies if this is old territory. I'm resizing a bunch of iframes on a page to the height of their contained documents. Some of the contained documents contain IMG tags. On IE this...
0
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet...
3
by: matwilko | last post by:
hi, i am trying to create a simple version of itunes...and i am using iframes to do this. I have already set up the iframes using dreamweaver and used a drop-down menu to select the genre. When...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.