Go to Dreamweaver-CSS attributes

Source: Internet
Author: User
Tags dreamweaver

CSSThe specification allows the use of shorthandCSSTo create a style. StenographerCSSYou can use one attribute label to specify the values of multiple attributes. For example, you can use the font attribute to set the font-style, font-variant, font-weight, font-size, line-height, and font-family attributes in a row syntax.

When using shorthand CSS, you must note that the omitted value of the shorthand CSS attribute will be specified as the default value of the attribute. When two or more CSS rules are specified for the same tag, this may cause the page to be incorrectly displayed.

For example, the H1 label shown below uses the common CSS syntax. Note that the values of the font-variant, font-stretch, font-size-adjust, and font-style attributes are specified as their default values.

H1 {
Font-weight: bold;
Font-size: 16pt;
Line-height: 18pt;
Font-family: Arial;
Font-variant: normal;
Font-style: normal;
Font-stretch: normal;
Font-size-adjust: none

}

The following uses a shorthand property to override this tag:

H1 {font: bold 16pt/18pt Arial}
When you write a stenographer, the omitted values are automatically specified as their default values. Therefore, the preceding stenography examples omit the font-variant, font-style, font-stretch, and font-size-adjust labels.

If you have defined styles in more than one position using the shorthand and common CSS syntax (for example, embedding styles in HTML pages and importing styles from external styles ), be sure that the omitted attribute may overwrite (or stack) the attribute explicitly set elsewhere.

Therefore,DreamweaverBy default, the common format of CSS symbols is used to write the syntax. This prevents potential problems caused by stenographer rules that can cover general rules. InDreamweaverWhen you open a Web page that uses the shorthand CSS symbol to write code, note thatDreamweaverA new CSS rule will be created in normal form. InWindowsFor "edit"> "preferred parameter", for "Dreamweaver"> "preferred parameter" in the "CSS style" category in the Macintosh, for "CSS"> "preferred parameter, you can specify how Dreamweaver creates and edits CSS rules.

Note: The "CSS style" panel only uses common symbols to create rules. If you use the "CSS style" panel to create a page or CSS style sheet, you must be aware that manual encoding of the stenography CSS rule may cause the stenography property to overwrite the attributes created in the common form. Therefore, use common CSS symbols to create your style.

Related Article

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.