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