CSS Basics-Text

Source: Internet
Author: User

1. Color property: Sets the color of the text. No default value

    • Color can be specified using color name, HEX, RGB, RGBA, HSL, HSLA, Transparent.
    • The Color property value is used indirectly to provide an intermediate value CurrentColor for other properties that accept color values.

    • As shown in the code, there is no color defined for the border, but the color defined is red, then red will be provided as an indirect value currentcolor to the border color property, so the final border color is also red.

2. Text-align: Sets the text horizontal alignment. Default start

Justify: content is justified, but is not processed for forced breaks (the line that is interrupted) and the last line (including only one line of text, because it is both the first and last line). (CSS3)

3. Text-indent: Sets the text indent in the object.

4. Text-transform: Set the case of objects in text

5. Text-shadow: Set text Shadow Effect and blur value

None
No shadows
<length>①:
A 1th length value is used to set the shadow horizontal offset value of the object. Can be a negative value
<length>②:
The 2nd length value is used to set the shadow vertical offset value of the object. Can be a negative value
<length>③:
If a 3rd length value is provided, the shadow blur value for the object is set. Negative values are not allowed
<color>:
sets the color of the object's shadow.

6. Word-wrap: If the content exceeds the boundaries of the specified container, whether to break the line.

Normal
Allows the content to open or overflow the specified container boundary.
Break-word:
Content will be wrapped within the boundary. If necessary, word breaks are allowed inside words.

CSS Basics-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.