CSS Properties-White-space Blank Attribute Usage Description _ Experience Exchange

Source: Internet
Author: User
CSS Properties-White-space Blank Property Description
This CSS property is used to handle whitespace.

Value: Normal | Pre | nowrap | Inherit

Description of available value values
Normal default value. Text is wrapped in a natural line. If the element width is exceeded, the content is naturally changed to the next line.
NoWrap does not allow line wrapping.
The pre preserves line breaks and whitespace. This value is only when you declare it! DOCTYPE, and IE 6 or above is supported.



In the HTML file, blanks, such as line breaks, spaces (spaces), tab characters (tabs), are automatically truncated. The HTML will automatically intercept the extra spaces. No matter how many spaces you add, it's considered a space. In order to add spaces to the Web page, you can use the represent spaces. You can also use
Force line wrapping.

Sample code
. p1 {White-space:nowrap}
. p2 {White-space:normal}
Inherited
Is

Suitable for
Elements of all block types (block elments).
  • 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.