943,866 Members | Top Members by Rank

Ad:
Jan 24th, 2004
0

mozilla & dynamic width iframe

Expand Post »
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 Thumbnails
Click image for larger version

Name:	rating_plugin_ie.jpg
Views:	77
Size:	84.5 KB
ID:	270   Click image for larger version

Name:	rating_plugin_mozilla.jpg
Views:	46
Size:	98.4 KB
ID:	271  
Similar Threads
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
himerus is offline Offline
82 posts
since Aug 2003
Jan 25th, 2004
0

Re: mozilla & dynamic width iframe

iframes shouldnt be used standalone

probally be best to drop it inside of a table
Team Colleague
Reputation Points: 96
Solved Threads: 21
The Geek Father
Zachery is offline Offline
781 posts
since Nov 2003
Jan 25th, 2004
0

Re: mozilla & dynamic width iframe

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.
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
himerus is offline Offline
82 posts
since Aug 2003
Mar 1st, 2004
0

Re: mozilla & dynamic width iframe

Quote originally posted by Zachery ...
iframes shouldnt be used standalone

probally be best to drop it inside of a table
I agree
Reputation Points: 115
Solved Threads: 2
Junior Poster
floris is offline Offline
152 posts
since Jan 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: CSS Quicky
Next Thread in HTML and CSS Forum Timeline: iframes help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC