[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

IFRAME size is perfect in IE but wrong in Firefox

Take a look at this page:

http://www.iframeissue.yesyall.com/?path=test.htm

1st use IE to view the page.
*Notice you can see the word "sneak" inside of the IFRAME
2nd open the same link inside Firefox or Netscape
*Notice you cannot see the word "sneak" inside of the IFRAME any longer.

Is there a special way I need to code the IFRAME to look the same as it does in IE?
My purpose is to make a true cross platform site.
0
deek22
Asked:
deek22
1 Solution
 
RedKelvinCommented:
try formatting your Iframe with CSS, if this does not work, have a look at this
http://www.experts-exchange.com/Web/Browser_Issues/Q_21403669.html#13872948
0
 
deek22Author Commented:
Fixed it, Here is the code that I used in the main page containing the iframe.  Using CSS to format the IFRAME allowed it to show up the same in Firefox/Netscape/IE

Thanks RedKelvin

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>IFRAME scroll problem</title>
<style type="text/css">
iframe{
      height: 155px;
      width: 700px;
      border-style: none;
}

</style>

</head>

<body>

<p>IFRAME Size Problem</p>
<p>
<iframe name="I1" src="test_2.htm" scrolling="no" border="0" frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

</body>

</html>
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now