Created
February 9, 2013 11:32
-
-
Save anselmh/4744956 to your computer and use it in GitHub Desktop.
Untitled
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
.overflowed > p{ | |
width: 10em; | |
height: 5em; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
.overflowed-clip { | |
text-overflow: clip; | |
} | |
.overflowed-ellipsis > p { | |
text-overflow: ellipsis; | |
} | |
.overflowed-ellipsis-word > p { | |
text-overflow: ellipsis-word; | |
} |
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
<!-- example showing text-overflow shorthand property --> | |
<div class="overflowed overflowed-clip"><p>This is an example text showing nothing interesting but the truncated content via text-overflow shorthand property.</p></div> | |
<div class="overflowed overflowed-ellipsis"><p>This is an example text showing nothing interesting but the truncated content via text-overflow shorthand property.</p></div> | |
<div class="overflowed overflowed-ellipsis-word"><p>This is an example text showing nothing interesting but the truncated content via text-overflow shorthand property.</p></div> | |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment