Skip to content

Instantly share code, notes, and snippets.

@mgan59
Created September 15, 2011 16:44
Show Gist options
  • Save mgan59/1219756 to your computer and use it in GitHub Desktop.
Save mgan59/1219756 to your computer and use it in GitHub Desktop.
cross browser wordwrap in css
.wordwrap {
white-space: pre-wrap; /* CSS3 */
white-space: -moz-pre-wrap; /* Firefox */
white-space: -pre-wrap; /* Opera <7 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* IE */
}
@mgan59
Copy link
Author

mgan59 commented Sep 15, 2011

from winladen

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