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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames with Netscape Whitespace

Status
Not open for further replies.

ksoong

Programmer
Oct 3, 2000
57
CA
Hello
i'm having a problem with frames in netscape. I've already searched in the forum for past posts and i can't find anything that's similar to this. unless i'm just blind.

anyways, I'm making a framed page in IE and it looks great but in netscape it doesn't look right because for some reason it doesn't recognize or it doesn't push the page to the very edge of the screen like it does in IE.

I'm using the following Body tags in all my pages:

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot;>

and then on top of that i'm using the following frameset code:

<FRAMESET ROWS=&quot;*,420,*&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; border=&quot;0&quot; FRAMEborder=&quot;0&quot;>
<FRAME NAME=&quot;top&quot; SRC=&quot;blank.htm&quot; border=&quot;0&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; NORESIZE>
<FRAMESET MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; border=&quot;0&quot; COLS=&quot;*,750,*&quot;>
<FRAME NAME=&quot;leftside&quot; SRC=&quot;blank.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; border=&quot;0&quot; NORESIZE>
<FRAMESET rows=&quot;65,*,23&quot; border=&quot;0&quot; FRAMEborder=&quot;0&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot;>
<FRAME NAME=&quot;top&quot; SRC=&quot;top.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; NORESIZE border=&quot;0&quot;>
<FRAMESET MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; border=&quot;0&quot; COLS=&quot;2,*,2&quot; framespacing=&quot;0&quot;>
<FRAME NAME=&quot;leftbar&quot; SRC=&quot;left.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; border=&quot;0&quot; NORESIZE>
<FRAMESET rows=&quot;20,*&quot; border=&quot;0&quot; FRAMEborder=&quot;0&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot;>
<FRAME NAME=&quot;nav&quot; SRC=&quot;nav.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; NORESIZE border=&quot;0&quot;>
<FRAME NAME=&quot;middle&quot; SRC=&quot;middle.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; NORESIZE border=&quot;0&quot;>
</FRAMESET>
<FRAME NAME=&quot;rightbar&quot; SRC=&quot;right.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; border=&quot;0&quot; NORESIZE>
</FRAMESET>
<FRAME NAME=&quot;bottom&quot; SRC=&quot;bottom.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; NORESIZE border=&quot;0&quot;>
</FRAMESET>
<FRAME NAME=&quot;rightside&quot; SRC=&quot;blank.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; FRAMEborder=&quot;0&quot; NORESIZE border=&quot;0&quot;>
</FRAMESET>
<FRAME NAME=&quot;bottom&quot; SRC=&quot;blank.htm&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;no&quot; border=&quot;0&quot; FRAMEborder=&quot;0&quot; NORESIZE>
</FRAMESET>

the problem lies in that where the frameset leftbar and rightbar are only supposed to be 2 pixels wide, it works fine in IE but in netscape it adds white space borders on the sides.

i suspect that this doesn't have anything to do with the frame set however, because when i view the page with all borders=1 i notice that the frames leftbar and rightbar are not 2 pixels. they have some white space. But the white space is on the right of the leftbar page and on the left of the rightbar page.

here's the code for leftbar:

<html>
<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; rightmargin=0 bottommargin=0 topmargin=0 leftmargin=0 MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot;>
<table width=&quot;2&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;100%&quot; align=&quot;left&quot;>
<tr>
<td width=&quot;2&quot; background=ccp/ccpimg/westbar.gif><img src=&quot;ccp/ccpimg/dot.gif&quot; width=&quot;2&quot; height=&quot;2&quot;></td>
</tr>
</table>
</body>
</html>


and here's the code for right.htm or rightbar

<html>
<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; rightmargin=0 bottommargin=0 topmargin=0 leftmargin=1 MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot;>
<table width=&quot;2&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;100%&quot; align=&quot;right&quot;>
<tr>
<td width=&quot;2&quot; background=ccp/ccpimg/westbar.gif><img src=&quot;ccp/ccpimg/dot.gif&quot; width=&quot;2&quot; height=&quot;2&quot;></td>
</tr>
</table>
</body>
</html>


i think it has to do with the pages themself and something to do with the margins in the body tags that are not being recognized by netscape. but i dunno.

thanks for your help.

ps: i can't post a url because this is on my company intranet.
 
Maybe you're over-doing it with marginwidth settings in both the body tags and framesets. I don't set marginwidth in my body tags and this code works seamlessly for me in Netscape: (v4.7)

<FRAMESET frameborder=&quot;0&quot; framespacing=&quot;0&quot; border=&quot;0&quot; cols=&quot;39%,60%,1%&quot; scrolling=no>

<FRAME src=&quot;left.html&quot; marginwidth=0 marginheight=0 frameborder=0 scrolling=no name=&quot;dhtml&quot;>
<FRAME src=&quot;cover400.html&quot; scrolling=no name=&quot;topframe&quot;>
<FRAME src=&quot;rightframe.html&quot; scrolling=no name=&quot;rightframe&quot;>
 
I tried your solution and it's still the same. Could it be that Netscape isn't handling the pixels properly? I noticed that in your code you use the % to define how large the frames are. But I use pixels.

Do you think this could be the problem?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top