Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-17-2006, 04:07 PM   #1 (permalink)
 
True Techie

Join Date: May 2006

Posts: 128

WHWebSolutions

Send a message via ICQ to WHWebSolutions Send a message via AIM to WHWebSolutions Send a message via Yahoo to WHWebSolutions
Default iframe help

Hello all I have this iframe code
Code:
 <iframe src ="test.php" width="100%" height="75%" frameborder=0 scrolling="yes"></iframe>
now in IE everything looks fine but in Firefox the frame is way to small. as you see it says 75% but in FF it looks like only 10% maybe 15%. Can someone help me out with this please?

William
WHWebSolutions is offline  
Old 08-17-2006, 06:30 PM   #2 (permalink)
 
Newb Techie

Join Date: Aug 2006

Posts: 13

non_profit

Default

try putting your iframe inside a
Code:
<table>
tag and setting your iframe width and height to 100% and set your table size to 100% and 75% - table tags seem to be a little more cross compatible - not sure if it will work or not but just my initial thought

your option is to use CSS and use both IE and Firefox coding standards, you can list both code side by side and it will work
non_profit is offline  
Old 08-18-2006, 02:36 AM   #3 (permalink)
 
True Techie

Join Date: May 2006

Posts: 128

WHWebSolutions

Send a message via ICQ to WHWebSolutions Send a message via AIM to WHWebSolutions Send a message via Yahoo to WHWebSolutions
Default

ok i did that
Code:
<table width="100%" height="75%" border="0">
  <tr>
    <td><div align="center">
      <iframe src ="test.php" width="100%" height="100%" frameborder=0 scrolling="yes"></iframe>
    </div></td>
  </tr>
</table>
and it still looks the same
__________________
William Harding
William Harding Web Solutions
whwebsolutions@aol.com
Visit my site for web hosting and design <a href=\"http://www.web-solutions.co.nr\">http://www.web-solutions.co.nr </a></td>
WHWebSolutions is offline  
Old 08-18-2006, 02:21 PM   #4 (permalink)
 
Newb Techie

Join Date: Aug 2006

Posts: 13

non_profit

Default

i think the problem may be that mozilla doesn't read % signs so when you say 80% mozilla readx it as 80px - so another option might be to use javascript function on the iframe load event

try something like this, i'm not sure if this function it self would work i just did off the top of my head but this is generally what you'd want to do
Code:
function IframeLoad(iframeName){
var screenWidth = screen.availWidth;
 if(navigator.appName != "Microsoft Internet Explorer")
{
      window.frames[iframeName].width = screenWidth*.8;
 }
}
non_profit is offline  
Old 08-19-2006, 09:59 AM   #5 (permalink)
 
True Techie

Join Date: May 2006

Posts: 128

WHWebSolutions

Send a message via ICQ to WHWebSolutions Send a message via AIM to WHWebSolutions Send a message via Yahoo to WHWebSolutions
Default

where do I put the page that will be showing n the frame?
__________________
William Harding
William Harding Web Solutions
whwebsolutions@aol.com
Visit my site for web hosting and design <a href=\"http://www.web-solutions.co.nr\">http://www.web-solutions.co.nr </a></td>
WHWebSolutions is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On