...

View Full Version : Frames looking different in different browsers



Mary George
08-10-2012, 08:22 AM
Hi,
my web page contains frames using jsp.but frame layouts are displaying different in different browsers,OS, and screen resolutions.can anybody help me out from this pls!!!!!

i've attached my code here for your kind reference:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Card User Page</title>
</head>


<frameset rows="21%,67%,11%" cols="*" frameborder="no" border="0" framespacing="0" >
<frame src="page3.html" frameborder="0" scrolling="no">


<frameset rows="*" cols="17%,20%,55%,17%" framespacing="0" frameborder="no" bordercolor="#D1D3D4">
<frame src="page5.html" scrolling="no" style="background-color: #D1D3D4" />
<frame src="UserNavigate.jsp" bordercolor="#D1D3D4" />
<frame name ="content" src="UserHome.jsp" scrolling="auto" marginwidth="50" bordercolor="#D1D3D4" >
<frame src="page6.html" scrolling="no" style="background-color: #D1D3D4"/>
</frameset>

<frame src="page4.html" scrolling="no">
</frameset><noframes></noframes>


<body>

</body>
</html>

Thanks in advance...

Philip M
08-10-2012, 08:44 AM
it code error. CODE don't work in firefox. Can you help me.

Have you tried using Firebug? That will expose the problem.

MG2W
08-10-2012, 08:50 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Card User Page (@_@)))))></title></head>
<frameset rows="21%,67%,11%" frameborder="no" border="0" framespacing="0" >
<frame src="page3.html" frameborder="0" scrolling="no" />
<frameset cols="17%,20%,55%,17%" frameborder="no" framespacing="0" bordercolor="#D1D3D4" >
<frame src="page5.html" scrolling="no" style="background-color: #D1D3D4" />
<frame src="UserNavigate.jsp" bordercolor="#D1D3D4" />
<frame name ="content" src="UserHome.jsp" scrolling="auto" marginwidth="50" bordercolor="#D1D3D4" />
<frame src="page6.html" scrolling="no" style="background-color: #D1D3D4"/>
</frameset>
<frame src="page4.html" scrolling="no"/>
</frameset>
<noframes></noframes>
<body>
</body>
</html>

MG2W
08-10-2012, 09:14 AM
I DONOT WORK. code DONOT WORK in Firefox.

Philip M
08-10-2012, 09:31 AM
You are starting to become nuisance. :( Do not SHOUT please.

1) Use your debugger tool (Firebug)
2) Get rid of this ancient code. Framesets are deprecated.

Mary George
08-11-2012, 08:23 AM
You are starting to become nuisance. :( Do not SHOUT please.

1) Use your debugger tool (Firebug)
2) Get rid of this ancient code. Framesets are deprecated.


Hi Philip,

I have tested with firebug.this code works in firefox.but shows different frame layout in different chrome and IE .also shows different in linux and windows..and different in different screen resolution...can u suggest an alternate for frames.

My requirement is this:

A webpage should be divided into several parts.
1: header part for logos
2: middle part containing two parts ,left part that contains button options,which should be static.the second part should be dynamic in which if we click on the options of left part,the corresponding contents should be displayed in second part.
3:footer art

Pls refer http://www.snapdeal.com/products


Hope u understand.....

pls help me out in this....

thanks...

Mary george

AndrewGSW
08-11-2012, 03:09 PM
You should use the Frameset DOCTYPE if you really want to use frames:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">

W3 (http://www.w3.org/TR/html4/present/frames.html)

Validate (http://validator.w3.org/#validate_by_input)

But you would be much better off re-writing it without frames.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum