CSS format layout

Source: Internet
Author: User

1, text layout--font

Grammar:

body{font-family: "Microsoft Yahei";}

Be careful not to set fonts that are not commonly used, because the default font is displayed if the font you set is not installed on the user's local computer. (because the user can see that the font style you set depends on whether the font you set is installed on the user's local computer)

2, text layout--size, color

Grammar:

Body{font-size:12px;color: #666}

3, text layout--Bold

Grammar:

Tag name {font-weight:bold;}

4, text typesetting--italic

Grammar:

Tag name {font-style:italic;}

5, text layout--underline

Grammar:

Tag name {text-decoration:underline;}

6, Text layout-delete the line (that is, the price of how much, the previous prices on a solid line)

Grammar:

. (Note that there is a dot) tag name {Text-decoration:line-through;}

7, paragraph layout--indentation

Grammar:

Tag name {text-indent:2em;} Note: 2em means twice times the size of the text.

8, paragraph layout--line spacing (row height)

Grammar:

Tag name {line-height:2em;}

9, paragraph layout--text spacing, letter spacing

Grammar:

Set text and letter spacing with label name {letter-spacing:50px:}

Set the word spacing with the label name {word-spacing:50px;}

10, paragraph layout--alignment

Grammar:

Tag name {text-align:center;} Note: You can also set the left and right alignment, just change the center to leave.

CSS format layout

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.