Scrolling and Other Stuff
By W3C standard the only attributes of the frameset tag are rows and cols. All other attributes are assigned to the frame tag. There are, however, some other attributes that you can use to enhance appearance and improve 'cross browser' performance.
Scrolling
The scrolling function of a frame window is set using the scrolling attribute which is added to the frame tag. For a better appearance you won't want all of your windows to display scroll bars.
Using this website as an example, the middle and right frame windows are the only ones that specify scrolling.
The values for the attribute are: yes, no and auto. (Default is auto )
The code is shown below:
<frame name="right-frame" scrolling="auto">
Frame Border
This is one area where browsers differ in the way they handle an attribute.
By W3C standards the frameborder attribute is assigned to the frame tag. IE supports the standard; Mozilla does not. Mozilla recognizes the attribute as a frameset element. IE accepts both.
Borders on your frame windows are a matter of preference. I don't like the clunky looking default borders that go with the territory, so I usually specify borders in the source pages and set all frameborder attributes to zero.
I used frameborders on this site so that it would perform the same in both IE and Mozilla browsers.
Experiment with adding and removing them and decide for yourself.
The attribute frameborder should be used with the frameset tag for closer browser consistency. Cross platform values are: yes, no, 1 and 0. The code is shown below:
<frameset frameborder="yes">
Note: If you try to use frameborders in compliance with the W3C standard, be sure to check your site in both IE and Mozilla browsers.
Frame Margins
Other attributes that you can experiment with are the marginwidth and marginheight. I recommend setting them to zero and setting your margins in your source documents. These attributes are set in the frame tag. The code is shown below:
<frame marginheight="0" marginwidth="0">
Once again, these settings are a matter of preference. Experiment and decide for yourself. Measurements are set in pixels.
Noresize
I include this attribute of the frame tag, just for your information. The noresize attribute pertains to and is only recognized by the IE browser.
If someone using an IE browser visits your website they can actually grab the sides of a window frame and close it or stretch it out.
If you want to turn off this option for IE viewers, add the noresize attribute to the frame tag. the code is shown below:
<frame marginheight="0" marginwidth="0" noresize>
You don't need to add it to every frame. Just add it to one frame that has a common edge with all of the other frames. On this website it would be added to the middle-frame.
Other Attributes You Can Use
framespacing This attribute can be used with the frameset tag to close the gap between frame windows on an IE browser. It is used in conjunction with the non-standard use of the frameborder="0" attribute with the frameset tag. ( When used, it will not affect performance of the Mozilla browser )
<frameset frameborder="0" framespacing="0">
style An inline style tag can be used to add borders to a frameset tag in both IE and Mozilla. The IE browser accepts the inline style tag in the frame tag; Mozilla does not.
Create a Website With Frames
What are frames?
The Frameset
Frames Source Pages
Frames Scrolling and Stuff
Noframes
Frames Redirection
The Frames Kit
Other Frames Resources
Contact Questions on How to Create a Website With Frames
Create a Website With Frames
What are frames?
Frameset Tag
Frames Kit
Noframes Tag
Frames and Redirection
Other Frames Resources
Frames Scrolling and other Attributes
Frames and Source Pages
Contact Questions on How to Create a Website With Frames
Copyright © 2008
Net Success 2000 Plus Inc
Somerset, KY, USA