.class | Firefox (2.0.0.1) | IE 7 | IE 6 standards mode | IE 5.5 | IE 5.01 | Opera 8.5 | Opera 7 |
---|---|---|---|---|---|---|---|
white-space: normal This value directs user agents to collapse sequences of whitespace, and break lines as necessary to fill line boxes. |
v | v | v | v | v | v | v |
white-space: pre This value prevents user agents from collapsing sequences of whitespace. Lines are only broken at newlines in the source, or at occurrences of "\A" in generated content. |
v | v | bug (expands bg) | x | x | v | v |
white-space: nowrap This value collapses whitespace as for 'normal', but suppresses line breaks within text. |
v | v | bug (expands bg) | bug (expands bg) | x | v | ? |
white-space: pre-line (not quite sure how this is meant to behave!) This value directs user agents to collapse sequences of whitespace. Lines are broken at newlines in the source, at occurrences of "\A" in generated content, and as necessary to fill line boxes. |
x | x | x | x | x | x | x |
white-space: pre-wrap This value prevents user agents from collapsing sequences of whitespace. Lines are broken at newlines in the source, at occurrences of "\A" in generated content, and as necessary to fill line boxes. |
x | x | x | x | x | v | x |
HTML pre (like white-space: pre) | v | v | b (expands bg) | b (expands bg) | b (expands bg) | v | v |
HTML pre[@wrap] (like white-space: pre-wrap) | v | x | x (+expands bg) | x (+expands bg) | x (+expands bg) | x | ? |
normal a very long paragraph with strange spacing and some strange line breaks too which do break or not and spaces are shown or not
pre a very long paragraph with strange spacing and some strange line breaks too which do break or not and spaces are shown or not
nowrap a very long paragraph with strange spacing and some strange line breaks too which do break or not and spaces are shown or not
pre-line a very long paragraph with strange spacing and some strange line breaks too which do break or not and spaces are shown or not
pre-wrap a very long paragraph with strange spacing and some strange line breaks too which do break or not and spaces are shown or not
pre element a very long paragraph with strange spacing and some strange line breaks too which do break or not and spaces are shown or not
pre element wrap a very long paragraph with strange spacing and some strange line breaks too which do break or not and spaces are shown or not