Created
April 20, 2017 11:14
-
-
Save maxyudin/33f9a905aac4041aa3dc806f1ad3edf9 to your computer and use it in GitHub Desktop.
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
.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