Solved

Frame Question: Aligning a border within frames

Posted on 2003-10-30
5
176 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
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 Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now