[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

Smooth table or frame in netscape

I'm creating a frameset without any borders. In fact there are 3 frames, each containing 1 picture. Because there are no borders, the pictures should exactly fit together. In explorer this is indeed the case, but netscape displays a white part between the pictures. Any hints?

The code:
<frameset rows="88,*" BORDER="FALSE" FRAMEBORDER="0" FRAMESPACING="0">
    <frameset cols="150,*,220">
      <frame name="ltitle" src="left.htm" scrolling="no" marginwidth="1" marginheight="1" noresize>
      <frame name="mltitle" src="middle.htm" scrolling="no" marginwidth="0"
      marginheight="1">
      <frame name="mtitle" src="right.htm" scrolling="no" marginwidth="0"
      marginheight="1" noresize>
    </frameset>
    <frame name="main" src="main.htm" scrolling="auto" marginwidth="8" marginheight="2">
</Frameset>
  <noframes>
  <body>
  <p>This page uses frames, but your browser doesn't support them.</p>
  </body>
  </noframes>

the files left,main,right contain:
<IMG SRC="x.gif" BORDER="0" VSPACE="0" HSPACE="0">

0
leon321
Asked:
leon321
1 Solution
 
andrivCommented:
try border="no"
0
 
brigmarCommented:
What you're seeing is the 1 pixel border netscape places around a document.

Possible workarounds:

The images can be used as backgrounds (put them in the "background" attribute of the <body> tag). This will repeat the images, unless you change the images so they are so large they wont tile.

Use CSS-P and <div> tag to enclose everything inside the <body> tag.

so..

<body>
<div id="wholebody" style="position:absolute; left:0px; top:0px;">
...content..
</div>
</body>

This means that any scripts that reference objects inside your document need to be modified for Netscape, which sees each <div> as an embedded document.

So,
document.images[0]
would become
document.layers[0].document.images[0]
for Netscape.

IE will still be able to use the document.all.images[0] reference.

Hope that is of use.
Brian
0
 
leon321Author Commented:
Brian,

Your comment helped!, the background tip did the trick!
Please "answer" to get the deserved points...

Thanks,
Regards,
Leon.
0
 
brigmarCommented:
What you're seeing is the 1 pixel border netscape places around a document.

Possible workarounds:

The images can be used as backgrounds (put them in the "background" attribute of the <body> tag). This will repeat the images, unless you change the images so they are so large they wont tile.

Use CSS-P and <div> tag to enclose everything inside the <body> tag.

so..

<body>
<div id="wholebody" style="position:absolute; left:0px; top:0px;">
....content..
</div>
</body>

This means that any scripts that reference objects inside your document need to be modified for Netscape, which sees each <div> as an embedded document.

So,
document.images[0]
would become
document.layers[0].document.images[0]
for Netscape.

IE will still be able to use the document.all.images[0] reference.

Hope that is of use.
Brian
0
 
MoondancerCommented:
Fixed the -1 problem on this question.
All points have been verified. Experts will now get the points you originally tried to award.
Moondancer
Moderator @ Experts Exchange
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now