User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 361,900 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,409 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 10306 | Replies: 3
Reply
Join Date: Aug 2003
Location: Steamboat Springs, CO
Posts: 82
Reputation: himerus is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
himerus's Avatar
himerus himerus is offline Offline
Junior Poster in Training

Help mozilla & dynamic width iframe

  #1  
Jan 24th, 2004
I'm working on including an <IFRAME> in a document, and I've set it to be 95% width of the table that it is located in. There is another cell in line with this one that is 150 px wide, and the iframe should be the remaining width of the page in this particular section....

It works like a charm in IE of course, but in Netscape & Mozilla at least, it ignores the constraints of the table cell that the iframe occupies, and makes the iframe a full 95% of the page, and not 95% of the table cells max width.

Any ideas on a way around this? Is using a percentage on an IFRAME not recommended?

Here's a screenshot in IE, and then in Mozilla. (somewhat low quality to fit under the allowed 100K file size)
Attached Images
File Type: jpg rating_plugin_ie.jpg (84.5 KB, 39 views)
File Type: jpg rating_plugin_mozilla.jpg (98.4 KB, 19 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2003
Location: Ohio
Posts: 778
Reputation: Zachery has a spectacular aura about Zachery has a spectacular aura about 
Rep Power: 7
Solved Threads: 19
Colleague
Zachery's Avatar
Zachery Zachery is offline Offline
The Geek Father

Re: mozilla & dynamic width iframe

  #2  
Jan 25th, 2004
iframes shouldnt be used standalone

probally be best to drop it inside of a table
Reply With Quote  
Join Date: Aug 2003
Location: Steamboat Springs, CO
Posts: 82
Reputation: himerus is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
himerus's Avatar
himerus himerus is offline Offline
Junior Poster in Training

Re: mozilla & dynamic width iframe

  #3  
Jan 25th, 2004
That's the weird part, I did include it in a table to try to further constrain the shape that it took. There is a main table around the whole site with width 100%, and the right navbar is set at a static 150px. The table cell that the iframe is in is set to 100%, which should translate to 100% of the page minus the 150px staticly set for the other cell...

That's the main reason I found it so odd that the browsers weren't handling it properly, because it was contained in a very standard table cell that should work properly every time for any browser. It just appears that with the IFRAME for some reason, the non-IE Browsers are overlooking the constraints of the TD tag, and assuming it should be 95% of the whole page.

If I can't get it to work the way I want, I may just have to resort to an alternate method of including the file, although I'm not sure of another way to easily incorporate my plugin to vB without file hacking.
Reply With Quote  
Join Date: Jan 2004
Location: Netherlands
Posts: 152
Reputation: floris has a spectacular aura about floris has a spectacular aura about 
Rep Power: 6
Solved Threads: 2
floris's Avatar
floris floris is offline Offline
vBulletin.com Staff

Re: mozilla & dynamic width iframe

  #4  
Mar 1st, 2004
Originally Posted by Zachery
iframes shouldnt be used standalone

probally be best to drop it inside of a table
I agree
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 8:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC