473,969 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="backgrou nd-color:#ffffff; border-style:none;
border-width:0px;" width="100%" height="300" src="features.p hp"
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 7191

la***********@z ipmail.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="backgrou nd-color:#ffffff; border-style:none;
border-width:0px;" width="100%" height="300" src="features.p hp"
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***********@z ipmail.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
6158
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 left cell width is set at 150px The right cell at 100%
1
1450
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... -------------------------------------------------------- <table cellspacing="0" cellpadding="0" height="100%">
0
6087
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. For example: I have a DIV containing an IFRAME and an IMG, whose z-index is 1. I have a second, identical DIV except this one's z-index is set to 0. I would expect the first DIV (including the IFRAME and IMG) two be rendered above the second DIV....
6
4970
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: |----------------------------------------------------------------| | Discrete table used as 'banner' | | DONE! | |----------------------------Table 1-----------------------------| ...
7
3710
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! I used iframe b-cos the links are too long and they shift the page to the right. Is there a way that if a user clicks a link on the Treeview it can target to the table of the main window on the right (I DOUBT IF ITS POSSIBLE) What other ways are...
1
7251
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 to browse the contents) the others I can't do anything with :(, it's like there is still a layer present (invisible) It works fine in FF If someone knows the answer, THANKS!
0
7787
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 explorer but not on firefox. I dont want it to scroll sideways. in index.htm the iframe is at the bottom of the code. index.htm <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">...
4
10131
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 the doctype does not work. Maybe I am using the incorrect doctype. This line works: <iframe id="fraAdmin" width=100% height:600px;" visible="true" runat="server" ></iframe>
0
10338
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10149
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11541
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10056
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8447
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6393
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6531
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.