Accessibility
 
Home > Products > Dreamweaver > Support > Using Frames
Dreamweaver Icon Macromedia Dreamweaver Support Center - Using Frames
Setting frame properties

Next you will specify properties and a name for each frame in the frameset. Since each frame will play a different role in the frameset, each will have different properties.

To set the properties of the left frame:

1 In the Document window, select the left frame by pressing Alt (Windows) or Shift+Option (Macintosh) and clicking inside the frame.
You can also select the frame by clicking it in the Frame inspector.
2 In the Property inspector, change the text in the FrameName field to hb_navigation .
It's good practice to give each frame in your site a unique name. This prevents confusion, and it can even help you determine if a frameset is loaded. (Using JavaScript, you could check for the existence of parent.hb_navigation , for example, to see if the Homebody Realty frameset was in the browser window. This is a useful technique for preventing framesets from opening within other framesets.) Also, avoid spaces and hyphens in frame names. While they will not break straight HTML, spaces and hyphens are not allowed in JavaScript objects or properties.
3 Set Margin Width to 5 and Margin Height to 10.
This moves the contents of the frame 5 pixels away from the left and right frame boundaries, and 10 pixels away from the top and bottom frame boundaries.
4 From the Scroll pop-up menu, select Auto.
This makes scroll bars appear if the content exceeds the available screen space. Generally, vertical scroll bars are fine in navigation and main content frames, but you should design your content so that horizontal scroll bars never appear. (It's very difficult for users to read text if they have to scroll in two directions.) To avoid horizontal scroll bars, make sure that the content will wrap naturally or that it will fit in the frame without wrapping even when vertical scroll bars appear. (This could mean that an image in a 150-pixel-wide frame might have to be 120 pixels or narrower.)
To set the properties of the top right frame:

1 In the Document window, press Alt (Windows) or Shift+Option (Macintosh) and click in the top right frame.
2 In the Property inspector, type this name for the frame: hb_header.
3 Set Margin Height to 10.
4 From the Scroll pop-up menu, select No.
Since this frame will contain only the name of the site, scroll bars should never appear.
To set the properties of the bottom right frame:

1 In the Document window, press Alt (Windows) or Shift+Option (Macintosh) and click in the bottom right frame.
2 In the Property inspector, type this name for the frame: hb_main.
3 Set Margin Width to 20 and Margin Height to 10.
4 From the Scroll pop-up menu, select Auto.
The Frame inspector now displays the names of the frames.

5 Save the frameset (File > Save Frameset).
To Table of Contents Back to Previous document Forward to next document