The value of white-space in css: pre-wrap

Source: Internet
Author: User

In CSS, how does one set the white-space attribute.
The default value "normal" indicates that blank spaces are ignored by the browser.

The white-space attribute declares how to process the blank characters in the elements during the layout process. Values pre-wrap and pre-line are newly added in CSS 2.1. Valid in IE8 or later, Firefox, and Chrome.

Pre-wrap indicates that the blank character sequence is retained, but the line feed is normal.

Ke leyi pre-wrap10 space keleyi.com ke leyi normal10 space keleyi.com ke leyi nowrap10 space keleyi.com



<P ke leyi. Keleyi.com. This is some text. This is some text. Http://keleyi.com/a/bjac/7q4sej2s.htm.



<P ke leyi. Keleyi.com. This is some text. This is some text. Http://keleyi.com/a/bjac/7q4sej2s.htm.



White-space value:
Normal default. The blank space is ignored by the browser.
Pre blank is retained by the browser. The behavior is similar

Label.
The nowrap text will not wrap, and the text will continue on the same line
Label.
Pre-wrap retains the blank character sequence, but line breaks are normally carried out.
Pre-line merges the blank character sequence, but retains the line break.
Inherit specifies that the value of the white-space attribute should be inherited from the parent element.

Original article: http://keleyi.com/a/bjac/7q4sej2s.htm

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.