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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coloring the framespacing (the come back)

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've put a thread, some weeks ago about changing the color of framespacing but I didn't get any working solutions. I wrote a very easy example that you can see after these few lines. If somebody can set the framespacing to "black" it will help me a lot.
Thx
david

- Test.html
<HTML>
<FRAMESET ROWS=&quot;50%,50%&quot; framespacing=&quot;10&quot; frameborder=&quot;0&quot;>
<FRAME src=&quot;Test_all_black.html&quot;>
<FRAME src=&quot;Test_all_black.html&quot;>
</HTML>

- Test_all_black.html
<HTML>
<BODY Bgcolor=&quot;black&quot;>
</BODY>
</HTML>
 
The first thing I would do is take the HTML tags out of the frameset - nothing should be in there except the frameset information.

I'm not sure what the framespacing tag in your frameset is. the frameset should look like below:

<frameset rows=&quot;50%,*&quot;>
<frame name=&quot;top&quot; src=&quot;left.html&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot;>
<frame name=&quot;bottom&quot; src=&quot;right.html&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;auto&quot; frameborder=&quot;0&quot;>
</frameset>


NOTE: You also did not name your frame sections as shown above (top and bottom) - this is usefull when you will be using anchors and targets and is really a necessity.
and the html file as such:

this would be the left.html or whatever you want to call it.

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

<html>
<head>
<title>top</title>
</head>

<body bgcolor=&quot;Black&quot;>

text would go here

</body>
</html>

 
I'm not 100% sure but I couldn't find a way of altering the spacing color - what about setting the border for a frame to your desired width and then setting the bordercolor attribute? May not do exactly what you wanted but it will colour the space between the frames

Let us know if you find the attribute!
 
Webgodiva, you have the same problem than me. There is this white line between the two frames. That this one I want to color to another color than white.
That was my question...how to color this white line which in fact the space between the two frames (framespacing set to 2 by default).
Thx
david
 
Hi David,

Give the code below a try!

<frameset cols=&quot;20%,*&quot; framespacing=&quot;0&quot; frameborder=&quot;0&quot; bordercolor=&quot;Black&quot;>
<frame name=&quot;left&quot; src=&quot;left.html&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot;>

<frame name=&quot;right&quot; src=&quot;right.html&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot;>

</frameset>

It should work!
 
Your solution does not work because I don't even have anything to move my frames. I've found the solution to my problem.
-test.html :
<html>
<FRAMESET ROWS=&quot;50%,50%&quot; framespacing=&quot;10&quot; frameborder=&quot;1&quot; bordercolor=&quot;green&quot;>
<FRAME src=&quot;test2.html&quot; frameborder=&quot;0&quot;>
<FRAME src=&quot;test2.html&quot; frameborder=&quot;0&quot;>
</FRAMESET>
</html>

-test2.html:
<html>
<body Bgcolor=&quot;black&quot;>
</body>
</html>

In fact the trick was to set the frameborder of the frameset to 1 even it does not work. thx all of u and see you for a next problem.:)
david
 
seems to be the same solution I gave just changed the colors - glad you got it to work. One thing I would recommend is to name your frames so you can target them when you use links.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top