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

Changing Frame Border Color/Style: Possible?

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
hey guys,

We have a frames page, but instead of the default grey, 3d frame borders, we want to change it (color, viewstyle, etc.)

Is there a way in CSS to do this? Im guessing their must, since I've seen the scroll bars for the browsers in all sorts of colors.

Thanks,

Jack
 
Try this example (I only tested it in IE5.5 here)

<frameset style=&quot;border: 3px dashed orange&quot; framespacing=&quot;0&quot; border=&quot;false&quot; cols=&quot;150,610,*&quot;>
<frame src=&quot;tabeltest.htm&quot; name=&quot;left&quot; scrolling=&quot;no&quot; marginwidth=&quot;1&quot; marginheight=&quot;1&quot; noresize>
<frameset style=&quot;border: 5px solid yellow&quot; framespacing=&quot;0&quot; border=&quot;false&quot; rows=&quot;30,*&quot;>
<frame src=&quot;popup.html&quot; name=&quot;slogan&quot; scrolling=&quot;no&quot; marginwidth=&quot;1&quot; marginheight=&quot;1&quot; noresize>
<frame src=&quot;Formtest.html&quot; name=&quot;main&quot; scrolling=&quot;auto&quot; marginwidth=&quot;1&quot; marginheight=&quot;1&quot; noresize>
</frameset>
<frame src=&quot;error.html&quot; name=&quot;right&quot; scrolling=&quot;no&quot; marginwidth=&quot;1&quot; marginheight=&quot;1&quot; noresize>
<noframes>
<body bgcolor=&quot;#3E6BBF&quot;>
<P>This page uses frames, but your browser doesn't support them.</P>
</body>
</noframes>
</frameset>

------------------------------------------------
As you can see the outlines of the frames are colored.
You can try to change the style to (I didn't test them all): hidden/dotted/dashed/solid/groove/ridge/inset/
outset/double/

Don't code the &quot;frameborder&quot;-attribute in the <frameset> tag !!
----------------------------------------------------

You can also experiment to set the separate frame-borders like:

<frame src=&quot;tabeltest.htm&quot; style=&quot;border: 2px solid green&quot; .........>

If you want to know more CSS possibilitys look at:

The detailed part is:

Hope this helps,
Erik

<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top