CSS First Contact

Source: Internet
Author: User

CSS: cascading tables to beautify pages, define how HTML elements are displayed, and make HTML code display more concise and straightforward.

CSS categories: 1. Inline: Written in the label, in the form of attributes, the property name is the style, the highest priority level. (not recommended, cause code looks messy)

2. Embedded: Written in the head tag, in the form of a label (signature style),

3. External: Written in tag head, label name Link (<link rel= "stylesheet" href= "" >)

CSS Selector (applies the found element or label to the element or label as specified in the selector):

/  * * Selects all elements in the selector padding defines the inner margin of the element, the upper right-left order can be any unit of percentage length, no negative  margin defines an empty area of the element's border, that is, margin, which can be any unit of percent length, can have negative values, A common practice is to set a margin length value of */*{  padding:10px 15px 5px 20px;  margin:   10% Auto}

1.id selector, depending on the attribute value of the ID to find the element (notation: #id的属性值, because the ID is unique, so only one element can be found)

2.class class selector, based on the attribute value of class to find the element (notation:. Class Property value, you can find one or more elements of the same class property value)

CSS First Contact

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.