
Inserting and Formatting Text
253
3
Enter a name, tag, or selector for the new style:
•
Custom style (class) names must begin with a period. If you don’t enter the
period yourself, Dreamweaver enters it for you. These names can contain any
combination of letters and numbers, but a letter must follow the period. For
example,
.myhead1
.
•
To redefine an HTML tag style, enter an HTML tag or choose one from the
pop-up menu.
•
For a CSS selector, enter any valid criteria for a selector (for example,
td
, or
#myStyle
), or choose a selector from the pop-up menu. The selectors available
from the menu are a:active, a:hover, a:link, and a:visited.
4
Select the location in which the style will be defined: New Style Sheet File
(external) or This Document Only.
5
Click OK. The Style Definition dialog box appears.
6
Choose the formatting settings for the new CSS style. Leave attributes empty if
they are not important to the style.
Attributes that do not appear in the Document window are marked with an
asterisk (*) in the Style Definition dialog box. Some of the CSS style attributes
that you can set with Dreamweaver appear differently in Microsoft Internet
Explorer 4.0 and Netscape Navigator 4.0, and some are not currently
supported by any browser.
7
Click OK or Apply.
See the following topics in Dreamweaver Help for information on specific settings:
•
Style Definition Type panel
•
Style Definition Background panel
•
Style Definition Block panel
•
Style Definition Box panel
•
Style Definition Border panel
•
Style Definition List panel
•
Style Definition Positioning panel
•
Style Definition Extensions panel
When you create a custom (class) style, it appears in the CSS Styles panel and in
the Text > CSS Styles submenu. HTML tag styles and CSS selector styles do
not appear in the CSS Styles panel because they cannot be applied; they are
reflected in the Document window automatically wherever the tag or
selector occurs.
Содержание 38028779 - Macromedia Dreamweaver - Mac
Страница 1: ...macromedia Using Dreamweaver...
Страница 148: ...Chapter 4 148...
Страница 296: ...Chapter 12 296...
Страница 472: ...Chapter 18 472...
Страница 512: ...Chapter 21 512...
Страница 562: ...Appendix 562...