It is possible to link a file to an existing CSS style that has already been
created, or you can create your own CSS styles within a Dreamweaver document.
There are three types of CSS styles that can be created:
Custom Style - to create a CSS style that
can be applied to selected items throughout a document, or several documents.
Redefine HTML tags - to change the
attributes of an existing HTML tag, such as headings or links. Once the CSS
style has been redefined all the affected elements will be changed
automatically, they do not have to be selected within the documents.
Use CSS Selector - to change the
attributes for specific elements within a CSS style. For example if you want
to change the colour of a hyperlink when the cursor is placed over it, but no
other attribute of it. Then the CSS Selector can be used to edit this
particular item.
The code for CSS styles is placed in the head tag of a HTML page or preferably an external .css flie. For the
Make Custom Style option, a tag is also placed around the selected text, to show
that the CSS style should only be applied to this element.
A frame is a region in a browser window that can display an HTML document
independent of what's being displayed in the rest of the browser window. A frameset is an HTML file that defines the layout and properties of a set of
frames, including the number of frames, the size and placement of the frames,
and the URL of the page to be initially displayed in each frame. The frameset
file itself doesn't contain HTML content to be displayed in a browser, except in
the noframes section, the frameset file simply provides information to the
browser about how a set of frames should be displayed and what documents should
be displayed in them. To view a set of frames in a browser, enter the URL of the frameset file; the
browser then opens the relevant documents to display in the frames. The frameset
file for a site is often named index.html, so that it displays by default if a
visitor doesn't specify a filename. In Dreamweaver, you can create a frameset in either of the following ways:
To create a frameset with the current document displayed in one of the
frames, use the Insert bar's Frames category.
To create a frameset with all its frames blank, use the Frameset category
in the New Document dialog box.
You can format all of your frames and framesets through the Property
inspector. You can set scrolling on or off, set width and height, name each
frame, and more.
Controlling frame content with links
To use a link in one frame to open a document in another frame, you must set
a target for the link. The target attribute of a link specifies the frame or
window in which the linked content opens. For example, if your navigation bar is
in the left frame, and you want the linked material to appear in the main
content frame on the right, you must specify the name of the main content frame
as the target for each of the navigation bar links. When a visitor clicks a
navigation link, the specified content opens in the main frame. To select a frame in which to open a file, use the Target pop-up menu in the
Property inspector. You can set a file to replace the document being displayed
in another frame, to appear in place of the entire frameset, to appear in the
frame where the link was (by not choosing a target), or to open in a new browser
window.
To target a frame:
In Design view, select text or an object.
In the Link field of the Property inspector, do one of the following:
Click the folder icon and select the file to link to.
Drag the Point to File icon to select the file to link to.
In the Target pop-up menu, choose the frame or window in which the linked
document should appear.
If you named your frames in the Property inspector, the frame names
appear in this menu. Select a named frame to open the linked document in
that frame.
Note: Frame names appear only when
you're editing a document within a frameset. When you edit a document in its
own Document window, outside of the frameset, frame names do not appear in
the Target pop-up menu. If you're editing a document outside of the
frameset, you can type the target frame's name into the Target text box.
_blank opens the linked document in a
new browser window, leaving the current window untouched.
_parent opens the linked document in the
parent frameset of the frame the link appears in, replacing the entire
frameset.
_self opens the link in the current
frame, replacing the content in that frame.
_top opens the linked document in the
current browser window, replacing all frames.
Tip: If you're linking to a page outside
of your site, always use target="_top" or target="_blank" to ensure that the
page doesn't appear to be part of your site
Setting frame Property inspector options
Use the Property inspector to name a frame and to set borders and margins. Tip: To make a link change the contents of
another frame, you must name the target frame. To make it easier to create
cross-frame links later, name each of your frames when you create it.
To specify properties for the selected frame:
Name the frame.
Frame Name is the name used by a link's
target attribute or by a script to refer to the frame.
Note: A frame name must be a single word;
underscores (_) are allowed, but hyphens (-), periods (.), and spaces are not.
A frame name must start with a letter (as opposed to a numeral). Frame names
are case-sensitive. Don't use terms that are reserved words in JavaScript
(such as top or navigator) as frame names.
Change the following options as desired:
Src specifies the source document to
display in the frame. Click the folder icon to browse to and select a file.
You can also open a file in a frame by placing the insertion point in the
frame and choosing File - Open in Frame.
Scroll specifies whether scroll bars
appear in the frame. Setting this option to Default doesn't set a value for
the corresponding attribute, allowing each browser to use its default value.
Most browsers default to Auto, meaning that scroll bars appear only when there
is not enough room in a browser window to display the full contents of the
current frame.
No Resize prevents visitors from dragging
the frame borders to resize the frame in a browser. (You can always resize
frames in Dreamweaver; this option applies only to visitors viewing the frames
in a browser.)
Borders shows or hides the borders of the
current frame when it's viewed in a browser. Choosing a Borders option for a
frame overrides the frameset's border settings. The options are Yes (show
borders), No (hide borders), and Default; most browsers default to showing
borders, unless the parent frameset has Borders set to No. A border is hidden
only when all frames that share the border have Borders set to No, or when the
parent frameset's Borders property is set to No and the frames sharing the
border have Borders set to Default.
Border Color sets a border color for all
of the frame's borders. This color applies to all borders that touch the
frame, and overrides the specified border color of the frameset.
Note: There is an underlying logic to
which frame borders have a given border color applied to them, but that logic
is complex; it may be difficult to understand why certain borders change color
when you specify a border color. For detailed information about the effects of
specifying border colors, see a book on frames and framesets.
Set the following margin options if you wish (if margin options aren't
visible, click the expander arrow in the lower right corner of the Property
inspector):
Margin Width sets the width in pixels of
the left and right margins (the space between the frame borders and the
content).
Margin Height sets the height in pixels of
the top and bottom margins (the space between the frame borders and the
content).
Note: Setting the margin width and height
for a frame is not the same as setting margins in the Modify - Page Properties
dialog box.
Viewing and setting frame properties
Use the Property inspector to view and set most frame properties. To change
the background color of a frame, set the background color of the document in the
frame. To view or set frame properties:
Select a frame by doing one of the following:
Alt-click a frame in the Document window's Design view.
Click a frame in the Frames panel.
Choose Window - Properties to open the Property inspector if it isn't
already open.
To see all of the frame properties, click the expander arrow in the lower
right corner of the Property inspector.