Skip to content

Instantly share code, notes, and snippets.

@aral
Forked from LeaVerou/dabblet.css
Created June 5, 2012 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aral/2873721 to your computer and use it in GitHub Desktop.
Save aral/2873721 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;
transform: rotate(-30deg);
}
.sticker:before,
.sticker:after {
content: '';
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
z-index: -1;
background: inherit;
}
.sticker:before {
transform:rotate(30deg);
}
.sticker:after {
transform:rotate(-30deg);
}
<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