The white-space property sets how white space (spaces and line breaks) is handled.
p {
white-space: nowrap;
}
Property |
Value |
Explanation |
white-space |
normal |
multiple white space is collapsed into a single space (default) |
nowrap |
prevents a line break |
pre |
preserves white spaces (MSIE is supported in Standards mode only) |
Example