Created
June 23, 2010 17:22
-
-
Save mjangda/450232 to your computer and use it in GitHub Desktop.
A cross-browser method to wrap really long strings using CSS
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
/** Disclaimer: this is not my code. I found this on pastebin and wanted to put it somewhere for easy reference. Thank you anonymous CSS god! **/ | |
.selector { | |
/** Word Wrap **/ | |
/** This will wrap really long strings, e.g. URLs, though without hyphenation **/ | |
word-wrap: break-word; /* CSS 3 + IE */ | |
white-space: -moz-pre-wrap; /* FF */ | |
white-space: -o-pre-wrap; /* Opera */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment