Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Frame Question: Aligning a border within frames

Posted on 2003-10-30
5
178 Views
Last Modified: 2010-04-09
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
Comment
Question by:RAD
  • 5
5 Comments
 
LVL 31

Expert Comment

by:seanpowell
ID: 9654524
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
 
LVL 31

Accepted Solution

by:
seanpowell earned 125 total points
ID: 9654580
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
 
LVL 31

Expert Comment

by:seanpowell
ID: 9654586
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
 
LVL 31

Expert Comment

by:seanpowell
ID: 9654817
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
 
LVL 31

Expert Comment

by:seanpowell
ID: 9660015
http://www.radmedia.org/palm/index6.html

...Nicely done!

Thanks,
GM
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question