Last active
December 10, 2015 21:38
-
-
Save mason-stewart/4496531 to your computer and use it in GitHub Desktop.
Fun food shapes in CSS. Yay!
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
| <html> | |
| <style type="text/css"> | |
| .food { | |
| width: 200px; | |
| height: 200px; | |
| margin: 50px auto; | |
| border-radius: 115px 26px; | |
| } | |
| /* Greenish lime color */ | |
| .lime { | |
| background: rgb(59, 255, 10); | |
| } | |
| /* it's a lemon! so it's yellow. */ | |
| .lemon { | |
| background: yellow; | |
| } | |
| /* An avacado! */ | |
| .avacado { | |
| background: rgb(61, 90, 10); | |
| } | |
| /* A blob of spam! */ | |
| .spam { | |
| background: rgb(216, 88, 88); | |
| border-radius: 50px 90px 20px 12px; | |
| } | |
| </style> | |
| <div class="food lime">lime</div> | |
| <div class="food lemon">lemon</div> | |
| <div class="food avacado">avacado</div> | |
| <div class="food spam">spam</div> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment