Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A frames question - someone try to explain this one...

Status
Not open for further replies.

TheDust

Programmer
Aug 12, 2002
217
US
I have 2 frames with the exact same document being called in each frame (for testing purposes), but one frame's contents are being shifted 10-15 px to the right:


The frameset source is:
<code>
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>
<html>
<head>
<title>::Dustwurks v2</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>
<frameset id=&quot;mainFrameset&quot; frameborder=&quot;0&quot; framespacing=&quot;0&quot; frameborder=&quot;no&quot; border=&quot;0&quot; rows=&quot;*,30&quot;>
<frame id=&quot;mainFrame&quot; src=&quot;testdefault.htm&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; noresize>
<frame id=&quot;cpanel&quot; src=&quot;testdefault.htm&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot; noresize>
</frameset>
<noframes>
<body>
Your browser does not support frames. Please find one that does (any browser built after the first Gulf War should do the trick).
</body>
</noframes>
</html>
</code>

Anyone got explanation for how I can get these two documents to line up??? Each frame is the EXACT same document, so what is causing the bottom frame's content to shift to the right like this? It makes no sense to me...
 
I am not sure, but your &quot;scrolling&quot; attribute is different in each frame right now...
 
Yeah the scroll attribute didn't have any effect on it... by the way I messed up on marking my code with <code> tags instead of
Code:
 (my bad).  Anyone else?  This seems like some bullshit to me.  Why should one frame display the exact same document shifted 15 px or so to the right?  It even seems consistent among many browsers...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top