• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Frame Question: Aligning a border within frames

Hello,
         As we learn more, more gets complex, well I may think this is complex, others will see the simple fix (I hope!)

I have a frame and well, better to see it... http://www.radmedia.org/palm/index5.html

notice there's a gap in the blue line at the bottom.
the way I set it up is the right border is a 2x3 pxl gif streetched to the cell size
the left bottom border is the same.
The problem probably lies within the fact that I couldn't get the left side perfectly even, so I created 2 pixels of transparency with the blue line going down. In other words the image has 2 pixels no color then 2 pixels of the blue.

At least thats what I think is making the bottom border have a gap.

Also there's an issue that makes the top frame and side move when you drag your mouse near it (like it had a scroll bar) I used the noresize tag and the scroll="no" ,...

So who can answer my double fisted question?! Arg!

RAD {:-()>
0
RAD
Asked:
RAD
  • 5
1 Solution
 
seanpowellCommented:
You will always have that space - it's generated by the frameset and there's no way to remove it.

You need to find an alternate way to lay out the page.
0
 
seanpowellCommented:
Like this:

Note: you only need this single image for your lines: bluelineacross.gif

index5.html
********
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Palm Air - Frame</title>
</head>
<!-- frames -->
<frameset rows="103,300,2" frameborder="0" framespacing="0" border="0">
  <frame name="top" src="patop.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
  <frameset cols="285,*" frameborder="0" framespacing="0" border="0">
    <frame name="left" src="paleft.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
    <frame name="main" src="pamain.html" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" noresize>
  </frameset>
  <frame name="top" src="pabot.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
  <frame name="hidden" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
  <noframes>
  <body>
  <p>This page uses frames, but your browser doesn't support them.</p>
  </body>
  </noframes>
</frameset>
<!-- end frames -->
</html>

patop.html
********
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Palm Air - Top</title>
</head>
<body topmargin="40" marginheight="40" leftmargin="50" marginwidth="50">
<img src="pa1.jpg" width="686" height="63" border="0" alt="">
</body>
</html>


paleft.html
********
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Palm Air - Left</title>
</head>
<body leftmargin="53">
<table border="0" cellpadding="0" cellspacing="0" width="232">
  <tr>
    <td width="2"><img src="bluelineacross.gif" width="2" height="300" border="0" alt=""></td>
    <td width="230">&nbsp;</td>
  </tr>
</table>
</body>
</html>


pamain.html
********
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Palm Air - Main</title>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="450">
  <tr>
    <td width="448">&nbsp;</td>
    <td width="2"><img src="bluelineacross.gif" width="2" height="300" border="0" alt=""></td>
  </tr>
</table>
</body>
</html>


pabot.html
********
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Palm Air - Left</title>
</head>
<body leftmargin="53">
<table border="0" cellpadding="0" cellspacing="0" width="682">
  <tr>
    <td><img src="bluelineacross.gif" width="682" height="2" border="0" alt=""></td>
  </tr>
</table>
</body>
</html>
0
 
seanpowellCommented:
Sorry - just one modification:
<frame name="top" src="pabot.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>

should be
<frame name="bottom" src="pabot.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
0
 
seanpowellCommented:
and
<frameset rows="103,300,2" frameborder="0" framespacing="0" border="0">
should be
<frameset rows="103,300,2,*" frameborder="0" framespacing="0" border="0">
0
 
seanpowellCommented:
http://www.radmedia.org/palm/index6.html

...Nicely done!

Thanks,
GM
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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