Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created April 21, 2012 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save LeaVerou/2440417 to your computer and use it in GitHub Desktop.
Save LeaVerou/2440417 to your computer and use it in GitHub Desktop.
Sticker
/* Sticker */
.sticker {
position: relative;
width: 3.5em;
height: 3.5em;
padding: 1em .5em 0;
margin: 100px;
background: slategray;
color: white;
font: italic 200% Baskerville, 'Palatino Linotype', Palatino, serif;;
text-align: center;
}
.sticker:before,
.sticker:after {
content: '';
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
z-index: -1;
background: inherit;
}
.sticker:before {
}
.sticker:after {
}
<div class="sticker">CSS inside!</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment