<! DOCTYPE html>
9. Vertical alignment
The Vertical-align property sets the vertical alignment of an element.
Baseline: Default. element is placed on the baseline of the parent element.
Sub: subscript for vertical aligned.
Super: Superscript of vertical aligned aligned
Top: Aligns the top of the element to the top of the highest element in the row
Text-top: Aligns the top of the element with the top of the parent element's font
Middle: Places this element in the middle of the parent element.
Bottom: Aligns the top of the element to the top of the lowest element in the row.
Text-bottom: Aligns the bottom of the element with the bottom of the parent element's font.
%: Use the percent value of the "Line-height" property to arrange this element. Negative values are allowed.
Inherit: Specifies that the value of the Vertical-align property should be inherited from the parent element.
10, the Blank processing method
The White-space property specifies how whitespace within an element is handled.
Normal: Default. The blank will be ignored by the browser.
Pre: The blank will be reserved by the browser. It behaves like a <pre> tag in HTML.
NoWrap: Text does not wrap, text continues on the same line until the <br> tag is encountered.
Pre-wrap: Preserves a sequence of whitespace characters, but wraps normally.
Pre-line: Merges a sequence of whitespace characters, but preserves newline characters.
Inherit: Specifies that the value of the White-space property should be inherited from the parent element.
11. Word Spacing
The Word-spacing property increases or decreases the whitespace between words.
<! DOCTYPE html>
Second, CSS3 text effect
1. Shadow text
The Text-shadow property is applied to the shadow text. Syntax Text-shadow:h-shadow v-shadow blur color; Note: The Text-shadow property joins one or more shadow text. The property is a shadow, separated by commas for each 2 or 3 length value specified and an optional color value. The length of the time lapse is 0.
H-shadow: Required. The position of the horizontal shadow. Negative values are allowed.
V-shadow: Required. The position of the vertical shadow. Negative values are allowed.
Blur: Optional. Blur the distance.
Color: Optional. The color of the shadow.
<! DOCTYPE html>
2. Automatic line Wrapping
The Word-wrap property allows for long content to be wrapped automatically. Word-wrap:normal|break-word;
Normal: line breaks only on allowed hyphenation points (the browser keeps the default processing).
Break-word: Wraps inside a long word or URL address.
<! DOCTYPE html>
If there is no word-wrap:break-word;
3, the Alignment method
The Text-justify property specifies the justification for text alignment set to "justify". This property specifies how the justified alignment and spacing should be aligned. Grammar text-justify:auto|inter-word|inter-ideograph|inter-cluster| Distribute|kashida|trim;
Auto: The browser decides to align the line algorithm.
None: Disables snapping to lines.
Inter-word: Increases/decreases the spacing between words.
Inter-ideograph: Use ideographic text to align content.
Inter-cluster: Only content that does not contain internal word breaks (such as Asian languages) is aligned.
Distribute: Similar to the newspaper layout, except in the East Asian language, the last line is not aligned.
Kashida: Aligns the contents by stretching the characters.
4. Text Overflow
The Text-overflow property specifies what should happen when the text overflows the element that contains it. Grammatical text-overflow:clip|ellipsis|string;
Clip: Trim text.
Ellipsis: Displays the ellipsis to represent the trimmed text.
String: Uses the given string to represent the trimmed text.
<! DOCTYPE html>
CSS (3) text (text)