Skip to content

Instantly share code, notes, and snippets.

@wietseneven
Created May 20, 2013 19:58
Show Gist options
  • Save wietseneven/5615018 to your computer and use it in GitHub Desktop.
Save wietseneven/5615018 to your computer and use it in GitHub Desktop.
Just for fun™: Mr. Border-Radius in pure CSS
/**
* Just for fun™: Mr. Border-Radius in pure CSS
*/
.mr-border-radius {
width: 540px;
height: 420px;
border-radius: 40px;
margin: 60px auto 0;
background: radial-gradient(hsl(40, 100%, 70%), hsl(40, 100%, 50%));
}
.eyebrow {
width:250px;
height:300px;
background:
-webkit-radial-gradient(0 100%, circle, rgba(153,94,0,0) 150px, #995e00 50px),
-webkit-radial-gradient(0 100%, circle, rgba(153,94,0,0) 20px, #995e00 10px);
background-position: bottom left, top right;
transform: rotate(-50deg);
background-size: 50% 50%;
background-repeat: no-repeat;
border-radius:100px;
}
<div class="mr-border-radius">
<div class="eyebrow"></div>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment