473,324 Members | 2,456 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,324 software developers and data experts.

iframe 100% height trickeration

Hi,
I am trying to get my iframe to occupy the entire height of the
table cell in which it is located. Sadly, this table cell may have
variable height. This is the code I'm using right now that doesn't
work on any browser ...

<tr>

<td><iframe style="background-color:#ffffff; border-style:none;
border-width:0px;" width="100%" height="300" src="features.php"
scrolling="auto"></iframe></td>
</tr>

Is there any JS trickery I can do to deduce the height fo that table
cell and then document.write the height attribute of the iframe? Even
if it only works on one browser, it would be better than nothing, which
is what I have now.

THanks, - Dave

Oct 6 '05 #1
3 7157

la***********@zipmail.com wrote:
Hi,
I am trying to get my iframe to occupy the entire height of the
table cell in which it is located. Sadly, this table cell may have
variable height. This is the code I'm using right now that doesn't
work on any browser ...

<tr>

<td><iframe style="background-color:#ffffff; border-style:none;
border-width:0px;" width="100%" height="300" src="features.php"
scrolling="auto"></iframe></td>
</tr>
Just a thought and you don't indicate, but have you tried setting the
height of the iframe to 100%?
Is there any JS trickery I can do to deduce the height fo that table
cell and then document.write the height attribute of the iframe? Even
if it only works on one browser, it would be better than nothing, which
is what I have now.

THanks, - Dave


Oct 6 '05 #2
Yes. I've yet to find a browser on which that works. -

Oct 6 '05 #3

la***********@zipmail.com wrote:
Yes. I've yet to find a browser on which that works. -


I've tried the following on IE6 and it works for me:

<table>
<tr>
<td>
<iframe src = "path/page" style = "width: 100%; height: 100%"></iframe>
</td>
</tr>
</table>

Oct 7 '05 #4

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

Similar topics

2
by: DaveO | last post by:
OK. Now I'm all googled out and still puzzled ! I admit I am very new to javascript, but think that it is the only solution to this. I have a web page with a table ( 2 columns, 1 row ) The...
1
by: Joop | last post by:
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... ...
0
by: Martin | last post by:
I understand that as of IE5.5 iframes respect the z-index style property. However I have noticed some odd behaviour when the iframe's src is set to an MHT web archive instead of an HTML file. ...
6
by: SF RVN | last post by:
I have searched NUMEROUS sources in an effort to find the magic (script, styles, syntax, etc.) that will allow me to create a web page with the following format: ...
7
by: Patrick.O.Ige | last post by:
Can i use Frameset in ASP.NET?What are other options I have a question :- I have an asp.net page and i'm using TreeView control as links The links are on the left side of the page inside a iframe!...
1
by: Testing12340 | last post by:
Hello!, I have this well, little IE issue. I'm showing hiding div's (containing IFRAMES), however, for some reason in IE one of the iframe contents allow me to click them (the last one allows me...
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...
4
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am using a I frame in a page and trying to set the height to height=100% and it is not working. If I use height=600px it works. I find some stuff about the DOCTYPE on the internet but changing...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.