Created
March 28, 2019 21:21
-
-
Save dirtandrust/6355161cc738a6b6cf47c0e5cec7367d to your computer and use it in GitHub Desktop.
Text overflow options CSS
This file contains hidden or 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
| /* Overflow behavior at line end | |
| Right end if ltr, left end if rtl */ | |
| text-overflow: clip; | |
| text-overflow: ellipsis; | |
| text-overflow: "…"; | |
| /* Overflow behavior at left end | at right end | |
| Directionality has no influence */ | |
| text-overflow: clip ellipsis; | |
| text-overflow: "…" "…"; | |
| /* Global values */ | |
| text-overflow: inherit; | |
| text-overflow: initial; | |
| text-overflow: unset; | |
| p { | |
| white-space: nowrap; | |
| width: 100%; | |
| overflow: hidden; /* "overflow" value must be different from "visible" */ | |
| text-overflow: ellipsis; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment