Posts

Showing posts with the label Css Text

Css Text-align-last Example

The text-align-last CSS property sets how the last line of a block or a line, right before a forced line break, is aligned. Syntax /* Keyword values */ text-align-last : auto ; text-align-last : start ; text-align-last : end ; text-align-last : left ; text-align-last : right ; text-align-last : center ; text-align-last : justify ; /* Global values */ text-align-last : inherit ; text-align-last : initial ; text-align-last : unset ; Values auto The affected line is aligned per the value of text-align , unless text-align is justify , in which case the effect is the same as setting text-align-last to start . start The same as left if direction is left-to-right and right if direction is right-to-left. end The same as right if direction is left-to-right and left if direction is right-to-left. left The inline contents are aligned to the left edge of the line box. right The inline contents are aligned to the right edge of the line box. center The inline conten...

Css Text-justify Example

The text-justify CSS property sets what type of justification should be applied to text when text-align : justify; is set on an element. text-justify : none ; text-justify : auto ; text-justify : inter-word ; text-justify : inter-character ; text-justify : distribute ; /* Deprecated value */ Syntax The text-justify property is specified as a single keyword chosen from the list of values below. Values none The text justification is turned off. This has the same effect as not setting text-align at all, although it is useful if you need to turn justification on and off for some reason. auto The browser chooses the best type of justification for the current situation based on a balance between performance and quality, but also on what is most appropriate for the language of the text (e.g., English, CJK languages, etc.). This is the default justification used if text-justify is not set at all. inter-word The text is justified by adding space between words (effectively ...