CSS format layout

Source: Internet
Author: User

Use CSS styles to set font, font size, color, and so on for text in a Web page

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

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

Bold:
P Span{font-weight:bold;}
Italic Body:
P A{font-style:italic;}
Underline:
P A{text-decoration:underline;}
Delete line:

To achieve the effect of the above strikethrough
. Oldprice{text-decoration:line-through;}
indent:
The paragraph in Chinese text is used to empty two words in the space before
P{text-indent:2em;}
Line spacing:
Set line spacing to 1.5 times times
P{line-height:1.5em;}
text spacing:
h1{
letter-spacing:20px;
}
Word spacing:
h1{
word-spacing:50px;
}

To align:
Center
h1{
Text-align:center;
}
Home left
h1{
Text-align:left;
}
Right
h1{
Text-align:right;
}

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.