CSS Property: white-space: normal nowrap pre pre-line pre-wrap initial Result: CSS Code: div { white-space:pre-wrap;}
The numbers in the table specify the first browser version that fully supports the property.Property white-space 1.0 8.0 3.5 3.0 9.5CSS Syntaxwhite-space: normal|nowrap|pre|pre-line|pre-wrap|initial|inherit;Property ValuesValueDescriptionDemo normal Sequences of whitespace will collapse into a ...
Thewhite-spaceproperty specifies how white-space inside an element is handled. Property Values REF: http://www.w3schools.com/cssref/pr_text_white-space.asp -
# CSS white-spaceThere's more values you can set with white-space:white-space: normal; /* default */ white-space: nowrap; white-space: pre; white-space: pre-wrap; white-space: pre-line; white-space: break-spaces; I plan to cover each of these in great details in a future code...
DOCTYPE html> CSS white-space Text with white-space : pre <textarea rows="7" cols="35" style="white-space:pre;"> Well, by w3schools' definition, pre ONLY wraps the text on line breaks, but the pre-wrap wraps the text on line breaks and as ne...