Skip to content

Instantly share code, notes, and snippets.

@jonathansousa
Created May 9, 2012 00:21
Show Gist options
  • Save jonathansousa/2640664 to your computer and use it in GitHub Desktop.
Save jonathansousa/2640664 to your computer and use it in GitHub Desktop.
Dabblet: Display pseudo element for hidden element
/**
* Display pseudo element for hidden element
* The first commented line is your dabblet’s title
*/
.hideme {
height:0;
overflow:hidden;
display:relative;
}
.hideme:after {
content:"sample";
position:absolute;
top:0;
left:0;
}
<!-- content to be placed inside <body>…</body> -->
<div class="hideme">This is a test of hidden content.</div>
{"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