CSS 2 text ③

Source: Internet
Author: User

The defined text

|

| Want this piece of text

--In this format, but it backfired.

|

|

But that's how he presented it |

                                      

                                     It turns out to be a single line that doesn't show up in the format we want. We can modify it by White-space properties.

White-space

White-space:normal | nowrap | Pre | Pre-wrap | Pre-line

Normal: determined by the browser

Pre-wrap usually used more often.

New Lines: Line break

Spaces and Tabs: Continuous spaces and continuous tab or Space tab tab

Text Wrapping: Wrap Line

Collapse: Merging into a single space

Wrap: Wraps automatically

No wrap: Won't wrap, force a line, and the line won't go out

Preserve: Reserved

      

  

Parsing: We found a word that is very long and does not wrap automatically we want it to be like this.

  

This word we don't care how long we want it to wrap we can use Word-wrap.

Word-wrap: Word Wrapping

Word-wrap:normal | Break-word | Break-all

Normal: OK.

Break-word: Wrap Line

    

But we found some problems left in the upper right corner of the space to come from the visual effect is not consistent with our expectations that we need to use Break-all

  

  

  

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