HTML and CSS Reference
In-Depth Information
In addition, the frameset is defined as having no borders, but the first frame is supposed
to have a border. How do you resolve this problem? You can apply three simple rules:
Attributes in the outermost frameset have the lowest priority.
n
Attributes are overridden by attributes in a nested <frameset> tag.
n
Any bordercolor attribute in the current frame overrides previous ones in
<frameset> tags.
n
Additional Attributes
Table 17.1 shows a few extra attributes for the <frame> tag. These attributes can give you
additional control over how the user interacts with your frames. Other attributes control
margins or spacing between frames and whether scrollbars appear when required.
TABLE 17.1
Control Attributes for the <frame> Tag
Attribute
Value
Description
Displays borders around each frame
(default).
frameborder
1
Creates borderless frames.
frameborder
0
Specifies a URL that provides a longer
description of the contents of the frameset.
Primarily used with nonvisual browsers.
longdesc
URL
To adjust the margin that appears above
and below a document within a frame, set
marginheight to the number indicated by
pixels .
marginheight
pixels
The marginwidth attribute enables you to
adjust the margin on the left and right sides
of a frame to the number indicated by pixels .
marginwidth
pixels
Assigns a name to the frame for targeting
purposes.
name
string
By default, the users can move the position
of borders around each frame on the current
screen by grabbing the borders and moving
them with the mouse. To lock the borders of
a frame and prevent them from being moved,
use the noresize attribute.
noresize
(Default) If the content of a frame takes up
more space than the area available, frames-
compatible browsers automatically add scroll-
bars to either the right side or the bottom of
the frame so that the users can scroll
through the document.
scrolling
auto
 
 
Search WWH ::




Custom Search