Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created December 4, 2012 16:07
Show Gist options
  • Save LeaVerou/4205580 to your computer and use it in GitHub Desktop.
Save LeaVerou/4205580 to your computer and use it in GitHub Desktop.
Inner border-radius example
/**
* Inner border-radius example
*/
body, div { border: 1px solid; }
body { width: 100px; border-radius: 20px; }
div { margin: 10px; padding: 10px; }
div:first-child { border-radius: 10px 10px 0 0; }
div + div { border-radius: 0 0 10px 10px; }
<div> foo </div>
<div> bar </div>
// 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