sometimes the text in the site is more, although the parent element set the width, but always there will be uneven on both sides of the situation, looks untidy. In fact, to achieve the end of the paragraph alignment, only need to set two CSS
Style.
. demo{ text-align:justify; text-justify:inter-ideograph;/*ie*/}
Text-justify Basic Syntax
Grammar:
Text-justify:auto |inter-word | Newspaper | Distribute | Distribute-all-lines | Inter-ideograph
Parameters:
Auto: Allows the browser user agent to determine the justification used;
Inter-word: By increasing the spacing between words, this behavior is the quickest way to align all lines of text, and its justification behavior is not valid for the last line of the paragraph;
Newspaper: The most precise format used to justify the Latin alphabet by increasing or decreasing the spacing between words or letters;
Distribute: Handling spaces is much like newspaper, applicable to East Asian documents, especially Thailand;
Distribute-all-lines: Both ends of the hyphenation are the same way as distribute, also does not contain two paragraphs aligned to the last line of the paragraph, applicable to ideographic documents;
Inter-ideograph: Provides full justification for ideographic text. He increases or decreases the space between ideographic words and words.
The code is as follows:
<! DOCTYPE html>
The effect is as follows: