Skip to content

Instantly share code, notes, and snippets.

@lsauer
Created January 9, 2012 18:48
Show Gist options
  • Save lsauer/1584308 to your computer and use it in GitHub Desktop.
Save lsauer/1584308 to your computer and use it in GitHub Desktop.
CSS Most important text overflow and wrapping options
/*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