The Web Design Group presents:


Guide to frames usage



Frames syntax: Assorted attributes

Over time, the FRAMESET and FRAME tags have seen a great many additions, in the form of new attributes. These are mainly hacks introduced to further allow authors to influence the presentation of the frames, and to limit the options that the reader has. For this reason, I strongly discourage their use.

Borderless frames

Introduced in Netscape 3 and also present in MS Internet Explorer, although both use different syntax. Using the following syntax: <FRAMESET ROWS="..." BORDER=0 FRAMEBORDER=0 FRAMESPACING=0> the user will not see a "border" between the frames defined in this frameset. While this may look neat, the problem is that the user now can't resize the frame if it is too small for his display.

Removing/disabling the scrollbar

By using SCROLLING=NO on a FRAME tag, the scrollbar can be disabled. This means that if the frame turns out smaller than the author expected, the user cannot scroll through it to read the rest of the contents.

Margin attributes

The MARGINHEIGHT and MARGINWIDTH attributes for FRAME can be used to specify the left and top margins for a frame. This hack was introduced because by default, Netscape leaves a small margin between the borders of the browser window and the actual content of the document. One popular (ab)use of this attribute is specifying a frameset with only one frame so the document can be "flushed" against the top of the browser window.

The NORESIZE attribute

This attribute disables the ability to resize a frame. Yuck.

The BORDERCOLOR attribute

This attribute (for NN 3.0 and above) can be used to specify the color for the border separating frames. Syntax is probably identical to that of the color attributes on BODY.


Web Design Group
Last modified: 27 Apr 1997.
Feedback: galactus@htmlhelp.com
Copyright © 1996 - 2006. Arnoud "Galactus" Engelfriet. All rights reserved.