CSS allows you to change the font, color, and size of a page or part by simply modifying a rule. is a key change!
Change font
1. Click the design button to switch to Design view.
2. In the CSS Styles panel, double-click the Body rule to open the "body CSS Rule Definition" dialog box, the default font for "font-family" is "Verdana, Arial, Helvetica,sans serif".
Different computers installed fonts are not the same, in order to ensure that the page layout effect will not be installed by the visitor's computer does not install the specified font and destroy the layout effect, so you need to specify a set of fonts, first use the Verdana font, if not the use of Arial font, and so on.
Tip: Dreamweaver CS5 provides more than 10 groups of commonly used font combinations. You can also click the "Edit Font list" option at the bottom of the "font-family" box to create a new font combination.
change fonts and colors
1. In the CSS Styles panel, double-click the Body rule.
2. From the "font-family" menu, select "Trebuchet MS, Arial, Helvetica, Sans-serif". Then click the "OK" button.
3. In the CSS Styles panel, double-click the. Footer rule.
4. In the ". Footer CSS Rule Definition" dialog box, in type, click the swatch behind color, and select a color.
The above action completes the entire page font and the bottom text color changes.
Change Text Size
In addition to changing font styles and colors, you can also use CSS to change the size of text.
1. Click the mouse at any point in the body, the label selector below will automatically display the hierarchy, click to see the text is selected, that is, the contents of the body are included. This step is only to instill the idea of div+css layout, and the following operation does not cause and effect relationship.
2. In the CSS Styles panel, double-click the. Content rule.
3. In the ". Content CSS Rule Definition" dialog box, enter "90" in the "Font-size" box and select "%" in the unit. Then click the OK button, and the text contained in the element will now display at 90% of its original size.