tags:

views:

350

answers:

4

I'd like to have two frames with no space between them. Here's my test case:

<html>
  <frameset framespacing="0" rows="50%, 50%">
    <frame frameborder="0" src="red.html" scrolling="no" noresize="1" />
    <frame frameborder="0" src="red.html"                             />
  </frameset>
</html>

red.html is just:

<html><body bgcolor="red"></body></html>

When I render this, however, I get a white line between the two frames. How do I make it go away?

+2  A: 

You need to specify the FrameBorder property in the Frameset tag. So, your main page will look like this:

<html>
  <frameset framespacing="0" rows="50%, 50%" frameborder="0">
    <frame frameborder="0" src="red.html" scrolling="no" noresize="1" />
    <frame frameborder="0" src="red.html"                             />
  </frameset>
</html>

This will solve your problem.

Jon
A: 

Here is an example of working code that I have used in the past that has no white line.

<frameset rows="10%,*" noresize framespacing=0 frameborder=no border=0 >
   <frameset cols="140,*" noresize framespacing=0 frameborder=no border=0 >
      <frame name="globe" scrolling="no" src="./GIF/globe.jpg" marginwidth="0 marginheight="0">
  <frame name="logo" src="logo.htm" scrolling="no" >

This page uses frames, but your browser doesn't support them.

Mark
A: 

Add border=0 to your frameset tag.

alumb
I had that answer 5 minutes ago... but pasting the code into the answer box totally screwed up the page rendering in chrome.
alumb
A: 
<html>
  <frameset framespacing="0" rows="50%, 50%" framespacing="0" frameborder=no>
    <frame frameborder="0" src="red.html" scrolling="no" noresize="1" />
    <frame frameborder="0" src="red.html"                             />
  </frameset>
</html>

frameborder=no is very important.

huangli