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

  • 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:


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.
1 Solution
try formatting your Iframe with CSS, if this does not work, have a look at this
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">
<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">
      height: 155px;
      width: 700px;
      border-style: none;




<p>IFRAME Size Problem</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.



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