Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Last active December 10, 2015 21:38
Show Gist options
  • Select an option

  • Save mason-stewart/4496531 to your computer and use it in GitHub Desktop.

Select an option

Save mason-stewart/4496531 to your computer and use it in GitHub Desktop.
Fun food shapes in CSS. Yay!
<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