Guide Adobe Dreamweaver
2 How to use CSS text styles © 2012 Adobe Systems Incorporated
This document requires Adobe Dreamweaver CS6. Technical instructions may differ depending on your version.
Changing text styles
To understand web fonts betters, consider how fonts are defined by using CSS. CSS font properties define the font
family, boldness, size, and style of text. A font declaration for an HTML paragraph tag looks something like this:
Changing text styles for web pages is easy in the CSS Styles panel.
To change text styles:
1. Start Dreamweaver.
2. Open a document in which you want to edit a CSS font
property.
3. Open the CSS Styles panel (Window > CSS Styles), if it
isn’t already open (Figure 2).
4. Double-click an existing rule or property in the top pane
of the CSS Styles panel.
The CSS Rule Definition dialog box appears (Figure 3).
5. Change or specify any of the following properties in the
dialog box. If a property is not important to you, don’t
select or enter a value for that property.
Font-family sets the font family (or series of families) for
the style. Browsers display text in the first font in the
series that is installed on the viewer’s system.
Font-size defines the size of the text. You can choose a
specific size by selecting the number and the unit of
measurement, or you can choose a relative size.
Font-style provides the options Normal, Italic, and
Oblique.
Line-height sets the height of the line on which the text is
placed. This setting is traditionally called leading.
Text-decoration adds an underline, overline, or line-
through to the text, makes the text blink, or removes any
decoration set elsewhere.
Font-weight applies a specific or relative amount of
boldface to the font. Normal is equivalent to 400; Bold is
equivalent to 700.
Font-variant sets the small caps variant on text.
Dreamweaver does not display this attribute in the
Document window.
Text-transform capitalizes the first letter of each word in
the selection or sets the text to all uppercase or lowercase.
Color sets the text color.
6. When you have finished, click OK. Observe the effect of
your changes in Design view.
Figure 2 CSS Styles panel
Figure 3 CSS Rule Definition dialog box