Paragraph layout--Chinese text spacing, letter spacing (letter-spacing, word-spacing)

Source: Internet
Author: User

Medium text interval, alphabetic interval setting:

If you want to set the text interval or the letter spacing In the page layout can be implemented using letter-spacing , such as the following code:

h1{    letter-spacing:50px;} ... < H1 > Great Gatsby </H1>

Note: This style is used in English words to set the spacing between letters.

Word spacing Settings :

What if I want to set the spacing between English words? Can be implemented using word-spacing . The following code:

h1{    word-spacing:50px;} ... < H1 >Welcome to here! </ H1 >


<!DOCTYPE HTML><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Word spacing</title><styletype= "Text/css">H1{letter-spacing:20px;font-size:20px;}P{word-spacing:20px;}#pp{letter-spacing:20px;</style></Head><Body>    <H1>Hello world, Hello Rinpe!</H1>    <HR/>    <P>Hello world, Hello Rinpe!</P>    <HR/>    <PID= "pp">My name is xxxxx.</P></Body></HTML>


Paragraph layout--Chinese text spacing, letter spacing (letter-spacing, word-spacing)

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: 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.