Created
January 9, 2012 18:48
-
-
Save lsauer/1584308 to your computer and use it in GitHub Desktop.
CSS Most important text overflow and wrapping options
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
/*lo sauer | |
See also http://www.w3schools.com/cssref/ | |
*/ | |
#myElId tr>:nth-child(3){ | |
/* | |
overflow-x | overflow-y | overflow | |
*/ | |
overflow:visible|hidden|scroll|auto|inherit; | |
/* | |
break-all Lines break between characters | |
hyphenate Words broken at an possible hyphenation point | |
*/ | |
word-break:keep-all; | |
text-overflow: clip|ellipsis|string; /*CSS3!*/ | |
text-wrap: normal|none|unrestricted|suppress|inherit; | |
/* | |
nowrap subsequent whitespaces coalesce. Text will never wrap till <br /> is encountered | |
pre Whitespace are preserved. on-line breaks. | |
pre-line subsequent whitespaces coalesce. | |
pre-wrap Whitespace are preserved . Text will wrap | |
*/ | |
white-space: nowrap|pre|pre-line|inherit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment