Controlling Text Wrapping with white-space in CSS


Use the white-space property to control how white space and line breaks within an element are handled.

Source Code

.nowrap {
    white-space: nowrap; /* Prevents text from wrapping */
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments