Last active
August 29, 2015 14:06
-
-
Save leechy/c484eb4faf75e9e4c7c2 to your computer and use it in GitHub Desktop.
Inline-block/overflow hidden vertical alignment
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
/** | |
* Inline-block/overflow hidden vertical alignment | |
*/ | |
div { | |
width: 20%; | |
margin: auto; | |
border: 1px solid cyan; | |
text-align: center; | |
} | |
b { | |
display: inline-block; | |
max-width: 100%; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div>On the <b>[email protected]</b> account, there is saved progress. | |
After signing <b>123</b> in you’ll continue from the last save point.</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