What's a way to support "white-space: pre-wrap" (significant whitespace, but lines still break) across all browsers?
This file contains 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 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