Created
June 4, 2014 10:24
-
-
Save voku/0dd3e9fc325a8cd87e6f to your computer and use it in GitHub Desktop.
wrap for "pre"-tags - From http://css-tricks.com/snippets/css/make-pre-text-wrap/ - DEMO: http://jsfiddle.net/voku/qNh2j/
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
/* Browser specific (not valid) styles to make preformatted text wrap */ | |
pre { | |
white-space: pre-wrap; /* css-3 */ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
word-wrap: break-word; /* Internet Explorer 5.5+ */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment