CSS properties-white-space blank properties instructions-Experience Sharing

Source: Internet
Author: User
CSS properties-white-space blank properties instructions for use CSS properties-white-space blank Properties
This CSS attribute is used to process white spaces.

Value: normal | pre | nowrap | inherit

Description of available value
Normal default value. Natural text line feed. If the element width is exceeded, the content is naturally changed to the next line.
Nowrap does not allow line breaks.
Pre retains line breaks and white spaces. This value is only valid when you declare it! DOCTYPE, which is supported by IE 6 or later.



In HTML files, blank spaces, such as line breaks, spaces, and tabs are automatically intercepted. HTML automatically removes unnecessary spaces. No matter how many spaces you add, it is regarded as a space. To add spaces to a webpage, you can use spaces. You can also use
Force line feed.

Sample Code
. P1 {white-space: nowrap}
. P2 {white-space: normal}
Inheritance
Yes

Applicable
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.