Distance between CSS words _css font character spacing setting

Source: Internet
Author: User

CSS word spacing, using CSS to control the distance between words and words, also known as the CSS Word spacing method.

Use the CSS style attribute word text-indent header distance, letter-spacing word and word spacing.

CSS word spacing, div css character spacing style instances
1. Text-indent Set Header distance CSS indent

That is, the corresponding Div set CSS style text-indent:20px; Indented 20px

2, letter-spacing to set the word spacing _ character distance between characters, font spacing CSS style

That is, set the CSS property style to letter-spacing:8px for the corresponding Div, and the word spacing is 8px.

The above is the introduction of using CSS to set word spacing, character spacing, font spacing, paragraph start indentation, using letter-spacing (Spacing settings), text-indent (indentation) Two CSS properties, the above is div+ CSS Web DIVCSS5 for you simply through the introduction of examples.

_______________________________________________________________________________________________________________ _____________

The difference between letter-spacing and word-spacing time: 2012-03-05 15:48:46 Views: 4512letter-spacing and Word-spacing Both properties are used to add whitespace in their corresponding element. Letter-spacing adds white space between letters, and word-spacing adds white space between each word. Please note that word-spacing is not valid for Chinese. letter-spacing

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. word-spacing

Grammar:
Word-spacing:normal | Length
Parameters:
Normal: Default spacing
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 number of spaces inserted between words in an object. Available only on Mac platforms for ie4+.
The corresponding script attribute is wordspacing.

Distance between CSS words _css font character spacing setting

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.