CSS layout rules in Dreamweaver CS3-graphic design

Source: Internet
Author: User

How CSS files are linked


1. Additional links: external CSS files


2. Import CSS: When multiple CSS files are used, import multiple CSS into one CSS file


There are three types of CSS rules defined


1, classes such as ". Redtext ",". Bluetext "and". BigText "Wait.


2, the label for the original HTML tags to do the re-CSS definition


3. Advanced pseudo-class, element with ID defined, and comprehensive definition


Application of CSS Rules


1, only "class" style needs to be applied, class= "XXXX". Any element can apply a class.


2. The difference between class and ID


3, the label application generally for the "body" label one-time use, for such as "Li", "TD" and so on the page of large repetition of the label is not recommended definition.


4, advanced multi-use, the definition of "#id li" than the definition of "Li" is much better.


The order in which CSS rules are executed


1, according to the implementation of CSS Code order


2. If there are duplicate rules, follow the definition after execution


3, the final rule is a combination of multiple definition rules


Focus: Advanced Rule definitions


1, for the different table text style definition. (Different tables use different IDs, use class style definitions)


2. Multiple hyperlink style definitions in one page


3, multiple same rules different objects of CSS common definition


4. Consider what is more scientific (extensibility and Code simplification) for multiple CSS methods defined by the same object


CSS layout rules in Dreamweaver CS3-graphic design

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.