Skip to content

Instantly share code, notes, and snippets.

@daniel-illi
Created June 14, 2016 09:44
Show Gist options
  • Select an option

  • Save daniel-illi/6f63f3e8ca86bccc64341adddd4eed76 to your computer and use it in GitHub Desktop.

Select an option

Save daniel-illi/6f63f3e8ca86bccc64341adddd4eed76 to your computer and use it in GitHub Desktop.
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