Page 70 - DCAP408_WEB_PROGRAMMING
P. 70
Web Programming
Notes frameborder=”1|0"
FRAMEBORDER is a boolean which triggers the display of frame separators around the
frame. When set to “1” a separator is drawn on every side next to another frame. When set
to “0” the decision to draw separators is left to surrounding frames. Indeed in this case
separators might still be drawn because FRAMEBORDER is set “1” on adjacent frames.
Default is “1”.
marginwidth=”value”
The MARGINWIDTH attribute is used when the document author wants some control of
the margins for this frame. If specified, the value for MARGINWIDTH is in pixels. Margins
can not be less than one; this insures that frame objects won’t touch frame edges, and can’t
be specified in a way that leaves no space for the document contents. The MARGINWIDTH
attribute is optional; by default, all frames default to letting the browser decide on an
appropriate margin width.
marginheight=”value”
The MARGINHEIGHT attribute is just like MARGINWIDTH above, except it controls the
upper and lower margins instead of the left and right margins.
noresize
The NORESIZE attribute doesn’t require a value. It can simply be used as a flag to indicates
that the frame is not resizable by the user. Users typically resize frames by dragging a
frame edge to a new position.
Notes Note that if any frame adjacent to an edge is not resizable, that entire edge is
restricted from moving.
This affects the resizability of other frames. The NORESIZE attribute is optional; by default
all frames are resizable.
scrolling=”yes|no|auto”
The SCROLLING attribute indicates whether the frame should have scrollbars or not.
“yes” results in scrollbars always being visible on that frame. “no” results in scrollbars
never being visible. “auto” instructs the browser to decide whether scrollbars are needed,
and to place them where necessary. That is, with “auto”, the frame has scrollbars only if
the document is larger than the current size of the frame. The SCROLLING attribute is
optional; the default value is “auto.”
Example:
<frameset cols=”25%,75%”>
<frame src=”frame_a.htm”>
<frame src=”frame_b.htm”>
</frameset>
The output will be shown in Figure 2.7.
64 LOVELY PROFESSIONAL UNIVERSITY