Skip to content

Instantly share code, notes, and snippets.

@tcr
Created October 28, 2011 09:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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?
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 */
}
["whitespace","white","space","pre","css"]
http://www.longren.org/wrapping-text-inside-pre-tags/
@muralidhar9e
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment