Created
May 9, 2012 00:21
-
-
Save jonathansousa/2640664 to your computer and use it in GitHub Desktop.
Dabblet: Display pseudo element for hidden element
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
/** | |
* 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; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="hideme">This is a test of hidden content.</div> |
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
{"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