What's the difference between letter-spacing and word-spacing?

Source: Internet
Author: User
Grammar:
Letter-spacing:normal | Length
Parameters:
Normal: Default interval
Length: A value consisting of a floating-point number and a unit identifier that is allowed to be negative. See Length Units
Description
Retrieves or sets the interval between the text in an object.
This property adds the specified interval to each text, but the last word is excluded.
The corresponding script attribute is letterspacing. Please refer to the other bibliography I have written.
Example:

div {letter-spacing:6px;} div {letter-spacing:0.5pt;}

What's the difference between letter-spacing and word-spacing?

word-spacing Properties in CSS
1. Retrieves or sets the number of spaces inserted between the words in the object. A length value consisting of a floating-point number and a unit identifier that is allowed to be negative.
2, the default value is normal, equivalent to set to 0
3. CSS defines "word" as a string of any non-whitespace character and is surrounded by some kind of whitespace. This definition has no practical semantics, it simply assumes that a document contains a word surrounded by one or more whitespace characters. CSS-enabled user agents do not necessarily determine which of the languages are legal and which are not. Although this definition does not have much value, it means that the language used in hieroglyphs or non-Roman writing is often unable to specify word spacing.
4. Using this property, you may create documents that are too wide in word spacing, so be careful when using word-spacing.

Second, the Letter-spacing property in CSS
1. Set the spacing between the text in the object. The distance between each medium text and the English letter is separated by the spacing that is controlled. The attribute value is both Chinese and English.
2, the default value is normal, equivalent to set to 0
3, with letter-spacing only to the text function for the picture fails
4, with letter-spacing on Chinese characters are separated by a word for English is a letter spaced

The Word-spacing property increases or decreases the space between words (that is, the word interval).

The Letter-spacing property increases or decreases whitespace between characters (character spacing).

Word-spacing (Word interval): This is    some    text.    This    is    some    text. This is some text. This is some text.letter-spacing (character spacing): T    H    i    s     i    s    H    e    a    d    e    R 4
Related Article

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.