Skip to content

Instantly share code, notes, and snippets.

@linuslundahl
Forked from LeaVerou/dabblet.css
Created July 16, 2014 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuslundahl/b5b1203a476c0fcb5f71 to your computer and use it in GitHub Desktop.
Save linuslundahl/b5b1203a476c0fcb5f71 to your computer and use it in GitHub Desktop.
Scoop corners with only one gradient
/**
* Scoop corners with only one gradient
* Caveats: backdrop must be a solid color,
* dimensions need to be known
* For more flexibility, see: http://lea.verou.me/2011/03/beveled-corners-negative-border-radius-with-css3-gradients/
*/
div {
width: 400px;
height: 300px;
background: #58a;
background-image: radial-gradient(15px circle, white 99%, transparent);
background-position: 200px 150px;
}
// alert('Hello world!');
{"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