Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

frames not working in I.E or Firefox

Jun 19, 2009 7:24AM PDT

I have a very simple frame set that I've created for my website but it only seems to be viewable in Google Chrome. Would love to know what I'm missing to make this work in I.E and Firefox?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>frame</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en-us">
<meta name="description" ontent="">
<meta name="keywords" content="">
<meta name="classification" content="Misc">
<meta name="resource-type" content="document">
<meta name="revisit-after" content="15 days">
<meta name="robots" content="ALL">
<meta name="distribution" content="Global">
<meta name="rating" content="General">
<link href="Style/CMS.css" rel="stylesheet" type="text/css">

<!-- YOU MAY WANT TO REMOVE THE BELOW STYLE SHEET //-->
<link href="Style/default.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
body { margin:0; }
form { margin:0; }
a {color:#0071c0;}
a:visited {color:#;}
a:active {color:#;}
a:hover {color:#;}
.style1 {color: #5D5F59}
.style2 {font-size: 12px; line-height:16px; text-decoration:none; font-weight: bold; font-family: Tahoma, verdana, Arial, Helvetica, sans-serif;}
.submenu { color:#0071c0; }
-->
</style>

<link href="site.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="white" ONLOAD="">
<p>
<!--- CMSDGC START --->
<html>

<frameset rows="10%, 90%">

<frame src="http://www.prosperlawcorp.com/top_frame.html">
<frame src="http://www.nationwidesupportservices.com/debtTalk/pdslogin.aspx">

</frameset>

</html>
<!--- CMSDGC END --->
</p>
<style>
<!--
body { background: #FFF; }
//-->
</style>
</body>
</html>

Discussion is locked

- Collapse -
A few things
Jun 19, 2009 4:16PM PDT

1. The actual problem is your BODY tag. You can't have that in there since FRAMESET is replacing it.

2. You have two pairs of HTML tags in there - remove the ones around the FRAMESET.

3. Change your DTD (first line) to reflect that you're using frames.

~Sovereign

- Collapse -
Don't even use frames
Jun 19, 2009 8:18PM PDT

There is a whole list of disadvantages to them - instead, use PHP includes.