Created
October 28, 2011 09:36
-
-
Save tcr/1321968 to your computer and use it in GitHub Desktop.
What's a way to support "white-space: pre-wrap" (significant whitespace, but lines still break) across all browsers?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
element { | |
white-space: pre; word-wrap: break-word; /* Internet Explorer 5.5+ */ | |
white-space: pre-wrap; /* CSS3*/ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.longren.org/wrapping-text-inside-pre-tags/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i think this would be helpful to you. https://www.w3schools.com/cssref/playit.asp?filename=playcss_white-space&preval=pre