Skip to content

Instantly share code, notes, and snippets.

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