Created
June 14, 2016 09:44
-
-
Save daniel-illi/6f63f3e8ca86bccc64341adddd4eed76 to your computer and use it in GitHub Desktop.
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
| button { | |
| position: absolute; | |
| visibility: hidden; | |
| } | |
| button:before { | |
| content: "goodbye"; | |
| visibility: visible; | |
| } | |
| /**//**//**//**//**//**/ | |
| .element { | |
| text-indent: -9999px; | |
| line-height: 0; /* Collapse the original line */ | |
| } | |
| .element::after { | |
| content: "New text"; | |
| text-indent: 0; | |
| display: block; | |
| line-height: initial; /* New content takes up original line height */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment