Details about Div + CSS attributes 4

Source: Internet
Author: User
Tags uppercase letter

Text attributes

Letter-spacing

Function: controls the spacing between letters of a text element. The configured distance applies to the entire element.
Value:
Normal-normal spacing. Reset the spacing between characters to the normal spacing of all fonts and font sizes.
Length-set the padding length. A positive value indicates the normal length inherited by the parent element, and a negative value indicates that the limit value is equal to the normal length. Specify the following measurement units after the number: Mm, CM, In, Pt (points), PX (pixels), PC (PICA), Ex (lowercase letter x height ), EM (the width of uppercase letter M ).

Line-height

Function: sets the line spacing of text in an element.
Value:
Normal-normal height, usually 1-times the font size, which is the default setting.
Number-set the distance between the text lines in the element to the font size multiplied by the number. For example, if the font size is 10 and the line-height is set to 2, the spacing is 20 points.
Length-set the spacing with the standard measurement unit. Some are absolute and some are relative. For details, see Xiaoming in letter-spacing.
Percent-also sets the padding for the percentage of the font size.

Text-align

Function: horizontal alignment of text in the element box.
Value:
Left-left alignment
Right-right alignment
Center-center
Justify-evenly distributed, generating long rows

Text-Decoration

Function: This function is used to control the effects of text elements. It is especially suitable for text effects such as notes and warnings.
Value:
None-No text modifier, default setting.
Underline-underline.
Overline-dashes.
Line-through-strikethrough.
Blink-flashing.
Multiple keywords can be combined in the same statement.

Text-indent

Function: Used to scale down the first line of a paragraph.
Value:
Length-set the size of the first line to the specified measurement unit. Some units are relative and others are absolute. For details, see the description of the letter-spacing attribute.
%-Set the first line to scale in as long as the percentage.

Text-Transform

Function: sets the uppercase standard for one or more elements.
Value:
None-do not change the uppercase and lowercase letters of the text.
The first letter of a word in the capitalize-element is capitalized.
Uppercase-set all text to uppercase.
Lowercase-set all text to lowercase.

Vertical-align

Function: vertical alignment.
Value:
Baseline-align the lower-case letter baseline of two elements.
Sub-subscript.
Super-superscript.
Top-top alignment.
Text-top-align the top of the text.
Middle-midline alignment.
Bottom-bottom line alignment.
Text-bottom line alignment of letters.
Percentage-increase or decrease the online element baseline by a certain percentage based on the parent element baseline and combine it with the line-height attribute of the element.

Word-spacing

Function: controls the spacing between elements and words in text. The configured spacing applies to the entire element. A larger or smaller spacing cannot be inserted between a word.
Value:
Normal-normal spacing.
Length-if the length is positive, the normal length inherited from the parent element is added. If the length is negative, the length is subtracted.

Related Article

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.