Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frameborder="0" doesn't actually make the frameborder disappear, help! 2

Status
Not open for further replies.

UncleMortis

Programmer
Jan 28, 2003
120
AU
I've got a vertical frames page. I don't want the scroll bar between the links page and the main page and have got rid of it using the frameborder="0" as this is supposedly the "valid" way of making it go. However this still causes a line to appear between the frames. If I use the "invalid" code of border="0" then it works. Am I placing the frameborder in the wrong part of the frameset page? you can view the site and the code I used for the frameset page is as follows:
Code:
<frameset cols=&quot;22%,*&quot;>
   <frame src=&quot;links.html&quot; name=links noresize frameborder=&quot;0&quot;>
   <frame src=&quot;home.html&quot; name=home>
</frameset>
 
<frameset cols=&quot;22%,*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot; >
<frame src=&quot;links.html&quot; name=&quot;links&quot; noresize scrolling=&quot;NO&quot; >
<frame src=&quot;home.html&quot; name=&quot;home&quot;>
</frameset>

good luck
 
No, sorry guys, neither of those work. The links page will still need a scroll bar when one of the links expands, so I can't tell the scrollbar to go away completely. That Frameborder=no/0 works nowhere. The only input for it according to the w3schools and the w3c site are frameborder=0 or 1.
 
------From MSDN (microsoft) ----------
Frameborder
String that specifies or receives one of the following values.
1 Default. Inset border is drawn.
0 No border is drawn.
no No border is drawn.
yes Inset border is drawn.
-------From Netscape-------
<FRAMESET
COLS=&quot;columnWidthList&quot;
ROWS=&quot;rowHeightList&quot;
BORDER=&quot;pixWidth&quot;
BORDERCOLOR=&quot;color&quot;
FRAMEBORDER=&quot;YES&quot;|&quot;NO&quot;
ONBLUR=&quot;JScode&quot;
ONFOCUS=&quot;JScode&quot;
ONLOAD=&quot;JScode&quot;
ONUNLOAD=&quot;JScode&quot;
>
...
</FRAMESET>

________________________________________________________
It's one thing if W3C says something but leave it to the companies that make the browsers to actually follow the Recommendation.


I'm Using IE 6.0 and Netscape 6.0 on Win2000 to test the code and it works on both.
If you want to scroll on the links area when the contents grow just change scrolling=&quot;NO&quot; to scrolling=&quot;Auto&quot;

just keep trying :)
 
The problem with your site, and meeting w3c standards is a lot more grave than the frame border... Look at your site with Luynxs and all you get is:
Code:
[EMBED] setstats 1
Gee, that is helpful, usefull and entertaining. Shockwave Flash and Frames is the key to horible navigation and longer load times... You have to ask yourself, &quot;Why would I want to limit my audience to those using Netscape 6.0 + or IE 5+ AND have the latest Flash plugin?&quot;

There is also something funky with the code for the links, it reaks havok on Lynx...
 
Grtfercho, I know what you are saying about the specifications by W3C and what the browser makers actually do. I used to just use border=0 and it worked fine. I wanted to get it to work to w3c standard. I'm running IE 6 win 98 se and still, I have a line dividing the frames. Is it possibly something happening from my end? I've moved the frameborder part from the frame src tag to the frameset tag and all that does is change the colour of the line.

IE is used by 90% of the internet, so if I'm losing 10% that's just something that is going to happen. The links side of the frames page is a simple table. The only thing flash is the splash page, I did that so a search engine could index the site.
 
I've tested the code on both and Still don't get problems. No lines in between or nothing.
Try to test in some one else's computer and see what's the output.
This is just a tought but it doesn't hurt if you try. Delete your temporary Internet Files. Sometimes (specially with frames) pages don't get refreshed as they should.

Now something got me confused you want to follow w3c standards but are focusing on IE and willing to lose the other 10% of your audience? if that's the case just develop for IE and forget w3c. just a tought..

About the Flash Splash (it takes some time to load).

 
With regard to w3c if you are trying to validate as html4 then you cannot use border=&quot;0&quot; I had the same problem with the frameset page but decided to accept that one non compliance
Regards
Ian

Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
This is what I would use, it works in Nescape, ie and opera
if you set scrolling to auto you will get scrollbar(s) when needed, otherwise they will be off.


<frameset cols=&quot;22%,*&quot; border=&quot;0&quot;>
<frame name=&quot;links&quot; scrolling=&quot;Auto&quot; noresize frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; src=&quot;links.html&quot;>
<frame name=&quot;home&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;Auto&quot; src=&quot;home.html&quot;>
</frameset>

Regards
Ian

Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
YES! Finally. Thank you for all of your help everyone. Now let me get this straight. I need to have the marginheight, and the marginwidth as well as the scrolling=auto included in the frameset? I wasn't doing this and on experimenting with ne4x4's suggestion I found that when I left these things out the line appeared even though I had the frameborder=0 happening. As with most things HTML, I was doing my head in over something very small that was omitted. Thanks to everyone for their input [2thumbsup].
 
If you want to make the frames appear seamless then you do need to use the marginwidth and marginheight attributes.
The scrolling=auto is optional but useful as it will display the scrollbar(s) when needed as opposed to scrolling=yes which will display both scrollbars and scrolling=no which never displays them.
If you carefully design you individual pages displayed in the frameset and use scrolling=auto you will get vertical scrollbars when needed and not have any horizontal scrollbars.

Regards
Ian

Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top