HTML and CSS Reference
In-Depth Information
Figure 11-2. The border and frameborder attributes let
you remove the borders between frames
Use the
frameborder
attribute with the value
1
or
yes
to enable, or with a
value
0
or
no
to disable borders. Use the
framespacing
attribute with an
integer value
1
or greater to thicken the border between frames. Why
two separate attributes to achieve the same effect as the single
border
?
Historical reasons, mostly. Suffice it to say here that some confusion still
exists. All the popular browsers accept
border
for
<frameset>
, so please
use it rather than the individual alternatives.
All the popular browsers, except Opera for some reason, also let you
control the color of the frame borders with the
bordercolor
attribute
(
Figure 11-3
). Use a color name or hexadecimal triple as its value. For
example, although you can't see the color in this black-and-white book,
the borders in
Figure 11-3
are light green, corresponding to the red,
green, and blue (RGB) value of "00CC00." (For clarity, we also increase
the size of the border with the
border
attribute.) You can find a complete
list of color names and values in
Appendix G
.