View Full Version : Frame definition borders won't leave...
Wolf_22
04-01-2005, 09:25 PM
Okay, as above says, I am making a site that uses a 3 pane frame approach, and I've set each frame pane background color to be "000000", or pure black. Anyways, the frame borders will not disapear even after explicitly declaring the "Frameborder" attribute to equal "no". Instead, what I see is a really thin white border, and I was hoping for ABSOLUTELY no border at all.
Is there anyway to eliminate the border completely??? I mean to make it look like the site doesn't even use frames??? :o
Hi
Can you provide a link or the actual code you are using because my own site uses iframes quite a lot and I have removed all trace of borders. Just take a look if you want and operate anything in the middle section and you will see that an iframe is catching all the content yet isn't showing any border. Am pretty sure if you show the code I will be able to sort it out.
MKJ
Sites-4u (http://sites-4u.com)
Wolf_22
04-02-2005, 03:31 AM
<html>
<head>
<title></title>
</head>
<frameset rows="30%,70%">
<frame src="header.html" scrolling ="no" bordercolor ="000000" frameborder ="no" border="0" framespacing="0" noresize>
<frameset cols ="16%,94%">
<frame src ="menu.html" scrolling = "no" bordercolor ="000000" frameborder="no" border="0" framespacing="0" noresize>
<frame src ="home.html" name ="winMain" scrolling = "yes" bordercolor ="000000" frameborder ="no" border="0" framespacing="0" noresize>
</frameset>
</frameset>
</frameset>
</html>
Okay, there is my html code. I think it was because I didn't have the "border=" attribute, because I GOOGLED "No borders +Frames +HTML"... The only thing is though is that when I tried it, it still didn't work. So I'm pretty stumped right now. If anyone could take a look at my code for my frame definition page, I'd be very happy! Thanks everyone...
_Aerospace_Eng_
04-02-2005, 09:13 AM
the frameborder="no" goes in the frameset tags, not the frame tags
<frameset rows="30%,70%" frameborder="no">
and you seem to have one to many frameset tags
rpgfan3233
04-02-2005, 03:12 PM
Actually, 'frameborder' DOES go in the <frame> (or <frame />) tag:
<!ELEMENT frame EMPTY>
<!ATTLIST frame
%coreattrs;
longdesc %URI; #IMPLIED
name NMTOKEN #IMPLIED
src %URI; #IMPLIED
frameborder (1|0) "1"
marginwidth %Pixels; #IMPLIED
marginheight %Pixels; #IMPLIED
noresize (noresize) #IMPLIED
scrolling (yes|no|auto) "auto"
>
-excerpt from XHTML 1.0 Frameset DTD
You just need to change the "no" value of the 'frameborder' attribute to "0".
BTW, you are right, Aerospace_Eng. There are 2 <frameset> tags and 3 </frameset> tags.
Wolf_22
04-02-2005, 03:51 PM
<html>
<head>
<title>Welcome to Utopia!</title>
</head>
<frameset rows="30%,70%">
<frame src="header.html" scrolling ="no" bordercolor ="000000" frameborder ="0" border="0" framespacing="0" noresize>
<frameset cols ="16%,94%">
<frame src ="menu.html" scrolling = "no" bordercolor ="000000" frameborder="0" border="0" framespacing="0" noresize>
<frame src ="home.html" name ="winMain" scrolling = "yes" bordercolor ="000000" frameborder ="0" border="0" framespacing="0" noresize>
</frameset>
</frameset>
</html>
Okay guys, I looked at what you posted... Is this what you advise? Because I did the above (inside my quote) and I still have the borders... Am I still doing something wrong?
rpgfan3233
04-02-2005, 04:01 PM
Refresh the page. It should work then. The frame borders should only appear (in MSIE) if you don't have those pages created yet. A refresh will display it properly.
Wolf_22
04-02-2005, 10:40 PM
It's still showing the small, white borders around each frame pane. I DO have Microsoft Internet Explorer, so do you think it's because I have that? I find it hard to believe though if that is in fact the reason because I know for a fact that I've witnessed pages being developed on IE browsers with no borders...
Anyways, "I see borders still." :(
snowieken
04-02-2005, 10:51 PM
Aerospace was almost correct. But it's framespacing which is in the wrong tag. Put the framespacing attribute in the frameset tag, and the white spaces will be gone. You won't even need "border=0".
rpgfan: In Mozilla, frameborder should be in the frameset tag, in IE, it should be in the frame tag. So it is generally best to put them in both tags.
_Aerospace_Eng_
04-02-2005, 10:57 PM
Did u even try my suggestion or did u just rule it out? I've worked with frames before, in iframes frameborder="0" or frameborder="1" works but in a frameset, it goes in the frameset tag and its either yes or no. Try this please. The pages will have to exist for this to work.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<frameset rows="30%,70%" cols="*" frameborder="no" framespacing="0">
<frame src="header.html" scrolling="no" noresize >
<frameset cols="16%,94%" frameborder="no" framespacing="0">
<frame src="menu.html" name="leftFrame" scrolling="NO" noresize>
<frame src="home.html" name="winMain">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
and as posted previously i forgot the framespacing part, but the above works in IE and FF, no need to put them in the frame tags, as they are not needed, but only in the frameset tags
Wolf_22
04-02-2005, 11:56 PM
Okay guys, I put the framespacing attribute inside the frameset tag, and it worked, but now I have another issue...
I have set my bgcolor in my frame definition page as being = "000000", or pure black as I stated earlier... Now that I have no borders, I am running into a slight difference in color. The header, and the menu panes are the same at "000000", but the home pane is a tad bit lighter. Now inside the body of the home pane, I have a watermark with a picture in the background. Before I even made the home pane page though, I made sure to go into Photoshop and set the color of the background picture to the exact same color as the bgcolor attribute was in hex which was "000000".
I double checked what I've just posted, and went back into Photoshop to see if I wasn't correct... I am and everything I've typed so far is accurate. Heres the deal... I opened up a "printscreened" picture of the page being made up as the home pane inside Photoshop. I opened another screen capture of the whole frame definition page inside Photoshop, and I also opened up the background picture that I set as the backgroup watermark in the home pane... Here's the kick: They all have that color "000000" or pure black except when put all together (framedef page)... Is there a way around this or is there going to be that slight lightening in value? I noticed that when I took the watermark code out, it reverted back to it's original color value, but if left in, the home pane remains at "010101", and what I'm wanting it to be is "000000".
_Aerospace_Eng_
04-03-2005, 12:11 AM
can u link us to the page plz? and what type of image did you save your watermark as?
Wolf_22
04-03-2005, 07:27 PM
Thanks, but no thanks guys. I fixed it up. Thanks though for your help because it DID help. I'll make sure to spread the word about you guys. Cheers!
_Aerospace_Eng_
04-03-2005, 07:31 PM
can u post your solution so people in the future with similar problems can benefit from it?
Wolf_22
04-04-2005, 04:21 AM
Sure Aerospace! No problem...
Here ya go:
As previously noted, I was attempting to fix a problem that took place with the creation of a 3 pane, framed HTML frame definition page. The problem that I was attempting to fix was that I was wanting the borders not to be seen. I was comming close by making my definition page only display a minor, practically transparent border, but yet the dern border was still visible. To make a long story short, it was all dependant of the <frameset> tag. Inside the frameset tag is an optional attribute that is known as "framespacing". When enabled (or typed inside the frameset tag in other words...), and given a numerical value ('0' in my case), it will determine the amount of additional space between frames. Now, I was thinking that the other attributes were used to make a frame border disappear, but instead snowieken suggested that this attribute (framespacing) was the likely culprit of the persistant border... After I defeated this "hurtle", I then had another conflict. This time, I realized that my color range was slightly off from the lack of border. It turned out that one pane was slightly lighter in value than the others, so I investigated, and came to the FACT that a "watermark" (or picture in the background that doesn't scroll) was the culprit of this next problem and it was due to the JavaScript that I used from the guys over at "DynamicDrive". It was aparent that the JavaScript being used was setting a hex value of the background around the watermarked image to a value that was slightly lighter than the one I desired. All I had to do to remedy this problem was simply set the value manually to the same value that was set on the other panes, and voila! That fixed it! I give my thanks to everyone that helped in my problem, and when my site is completed, I will hook you all up with the addy so you all can scope it out, and give me some tips and constructive feedback on it! If you have any Q's now though, feel free to send me a text message, or email! I'll respond... Later guys.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.