Created
November 9, 2017 00:19
-
-
Save LeaVerou/f3f520e55120c8bd7d92b44c7bc8a675 to your computer and use it in GitHub Desktop.
Elliptical border radius
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Elliptical border radius | |
*/ | |
div { | |
position: absolute; | |
top: 50px; left: 50px; | |
height: 100%; | |
border: 40px solid black; | |
border-color: skyblue orange yellowgreen indianred; | |
width: 300px; height: 100px; | |
border-radius: 20px / 100px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"110","seethrough":"","prefixfree":"","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment