Last active
September 18, 2021 22:22
-
-
Save csssecrets/e98d11da331bd9482bb0 to your computer and use it in GitHub Desktop.
Flexible half ellipse
This file contains hidden or 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
| /** | |
| * Flexible half ellipse | |
| */ | |
| div { | |
| display: inline-block; | |
| width: 16em; | |
| height: 10em; | |
| margin: 1em; | |
| background: #fb3; | |
| border-radius: 50% / 100% 100% 0 0; | |
| } | |
| div:nth-of-type(2) { border-radius: 50% / 0 0 100% 100%; } | |
| div:nth-of-type(3) { border-radius: 100% 0 0 100% / 50%; } | |
| div:nth-of-type(4) { border-radius: 0 100% 100% 0 / 50%; } |
This file contains hidden or 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> | |
| <div></div> | |
| <div></div> | |
| <div></div> |
This file contains hidden or 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 hidden or 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":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment