Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created September 20, 2013 09:24
Show Gist options
  • Select an option

  • Save gunnarbittersmann/6635136 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/6635136 to your computer and use it in GitHub Desktop.
border-corner-shape
/**
* border-corner-shape
*/
#radial-gradient
{
width: 42px;
height: 242px;
background-image: radial-gradient(circle at bottom left, transparent 42px, red 42px);
border-top-left-radius: 42px;
}
#pseudoelement
{
width: 42px;
height: 242px;
background: green;
border-top-left-radius: 42px;
position: relative;
}
#pseudoelement::before
{
content: "";
position: absolute;
bottom: 0;
width: 42px;
height: 42px;
background: white;
border-top-right-radius: 42px;
}
div
{
display: inline-block;
margin: 0 42px;
}
<div id="radial-gradient"></div>
<div id="pseudoelement"></div>
// 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