CSS Series Tutorial--Text

Source: Internet
Author: User

text-align: Specifies the horizontal alignment of the text. Left/right/center/justify (Justify)/inherit (inheritance)

Text-decoration: Effect added to text. Underline, middle line and so on. None/underline/overline/line-throuth/blink/inherit

Text-indent: The distance the text indents. 10px/10%

Text-shadow: The shadow Effect of the text. (x,y,width,color) Landscape, Portrait, shadow width, color

Text-transform: Defines the text case for letters. Capitallize (first letter), Uppercase,lowercalse,inherit

White-space: How to handle whitespace inside an element.
White-space:normal Blank will be ignored by the browser
White-space:pre blank will be reserved by the browser
White-space:nowrap text will not wrap, text will continue on the same line
White-space:pre-wrap preserves a sequence of whitespace characters, but wraps the line
white-space:pre-line merge whitespace sequences, but preserves newline characters
White-space:inherit inherit

Word-spacing: Sets the word spacing. 10px/inherit

Text-overflow: Specifies what happens when the text overflows the containing element. Clip (cut)/ellipsis (overflow with ellipsis instead)/string (overflow with specified characters instead)
Typically used with whitespace and overflowhidden, for a single-line text overflow processing

Word-break: line-wrapping rules for non-CJK text. Break-all (wrap in Word)/keep-all (can only wrap at half-width spaces or hyphens)

Word-wrap: Allow long words to wrap to the next line. Break-word (line wrapping inside a long word or URL address)/ Normal wraps only the allowed hyphenation points


CSS Series Tutorial--Text

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.