CSS Style Two

Source: Internet
Author: User

CSS text styles
    • Text-align: Setting the alignment of text

Value:

Left justified

Right: Align to the left

Center: Center Alignment

    • Text-indent: Sets the first line indent of text

???? For example, the font is set to 12px, the first line indents another word, and 24px.

    • Text-decoration: Setting decorative lines for text

???????? Value:

???????? None does not set the text decoration line

???????? Underline: Set Underline

???????? Overline: Underline

???????? Line-through: Medium Dash

    • Text-transform: (mainly used in English text)

???? Value:

Capitalize: Capitalize the initial letter

Uppercase: Convert all letters to uppercase

Lowercase: Convert all letters to lowercase

    • Letter-spacing: If it is a Chinese character, set the spacing between the word and the word

???????????????? If it is English text, set the spacing between letters and letters

    • Word-spacing: Set Word spacing (main application English)
    • Line-height: Set the line height of the text

Structure code:

Example 2:

Style code:

Structure code:

CSS List styles

List-style: Setting the symbol type for a list

Value:

Do not set symbols

None

Bullets for unordered lists:

Square: Solid block

Circle: Hollow Origin

Disc Solid Origin Point

Bulleted bullets with sequence list

Decimal???????????????? Arabic numerals

Lower-alpha???????????? lowercase letters

Upper-alpha???????????? Capital

Lower-roman???????? Lowercase Roman Numerals

Upper-roman???????? Uppercase Roman Numerals

?

List-style-position: Location of bullets

???????? Inside (inside the LI tag)

???????? Outside (outside of the LI tag)

?

List-style-image: Representing bullets with a background image

???????? Writing rules: List-style-image:url (path URL for background image)

Abbreviated form: List-style:square inside URL (arrow.gif);

?

Example 1:

Style code:

Structure code:

CSS background style

Background-color: Set background color: Red #ff0000, RGB (100,120,200)

Background-image:url (path URL for background image)

Background-repeat:

No-repeat: Uneven Shop

Repeat:x axis and y-axis tiling

Repeat-x: Tiling on the X-axis

Repeat-y: Tiling on the y-axis

Background-position: Set the position of the picture;

???? In numerical notation, X PX,YPX writes only one of the values that are not set in the other direction, as it has been set.

Word notation:

???? X direction: Left center right,

???? Y-axis direction: Top (Top aligned) center (center) Bottom (bottom)

???? Percent notation: 50%,50%

Background-position:left Center;

Set picture x-axis to align Left

Set the y-axis of the picture to align Center

Code:

?

CSS Style Two

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.