Dreamweaver Tutorials-change text breaks, colors, and sizes

Source: Internet
Author: User
Tags dreamweaver

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.