Working with frame borders

Setting the border color

To change the color of frame's border, use the bordercolor attribute. The attribute can be applied either to an entire set of frames, using the <frameset> tag, or to individual frames, using the <frame> tag. The syntax for this attribute is:

<frameset bordercolor="color">
or
<frame bordercolor="color" />

Applying the bordercolor attribute to the frameset tag affects all the frames and nested frames within the set.

If you apply bordercolor to a single <frame> tag, this particular frame border changes in Internet Explorer, but not in Netscape.

Try how it works with your browser: (the border color will be changed to red)

 

 




Setting the border width

To change the width of the frame borders, use the border attribute within the <frameset> tag:

<frameset border="value">

where value is the width of the frame borders in pixels. One cannot change the width of individual frame borders.

Note that one can also change border width in Internet Explorer using the framespacing attribute. However, this attribute is not supported by Netscape Navigator.

Try how it works:

Border width settingAction
border width: