CSS layout rules in Dreamweaver CS3

Source: Internet
Author: User
Tags definition execution html tags repetition dreamweaver
Label applications generally for the "body" label one-time use, for such as "Li", "TD" in the page, such as the repetition of a larger label does not recommend the definition.

Create a code editor that you can use with DW to write CSS code. Today, we introduce the CSS layout rules of Dreamweaver CS3 Web page production.
How CSS files are linked
• Additional links: external CSS file
• Import CSS: When multiple CSS files are used, import multiple CSS into a CSS file
There are three types of CSS rule definitions
• Classes such as ". Redtext ",". Bluetext "and". BigText "Wait.
• Re-CSS definition of tags for original HTML tags
• Advanced Pseudo class, element with ID defined, and comprehensive definition
Application of CSS Rules
* Only "class" style needs to be applied, class= "XXXX". Any element can apply a class.
The difference between class and IDs
• Label applications generally for the "body" label one-time use, for such as "Li", "TD" in the page, such as the repetition of a larger label does not recommend the definition.
• Advanced multiple applications, defining "#id Li" is much better than defining "Li".
The order in which CSS rules are executed
• Follow the sequence of CSS code execution
• If there are duplicate rules, follow the definition after execution
• The final rule is the synthesis of multiple definition rules
Emphasis: Advanced rule definition
• Text-style definitions for different tables. (Different tables use different IDs, use class style definitions)
• Multiple hyperlink style definitions on one page
• Multiple CSS Common definitions of different objects of the same rule
• Consider what is more scientific (extensibility and Code simplification) for multiple CSS methods defined by the same object



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.