Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created January 3, 2014 20:48
Show Gist options
  • Save LeaVerou/8246293 to your computer and use it in GitHub Desktop.
Save LeaVerou/8246293 to your computer and use it in GitHub Desktop.
Lego studs
/**
* Lego studs
*/
body {
background: yellowgreen;
}
div:before,
div:after {
width: 100px;
height: 88px;
border-radius: 50% / 29px;
box-shadow: 0 -30px 0 rgba(0,0,0,.5) inset;
}
div:before,
div:after {
content: '';
display: block;
margin-left: 100px;
}
// alert('Hello world!');
{"view":"split","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