Skip to content

Instantly share code, notes, and snippets.

@ws
Created November 8, 2012 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ws/4041440 to your computer and use it in GitHub Desktop.
Save ws/4041440 to your computer and use it in GitHub Desktop.
Snowman
/**
* Snowman
*/
#bg {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
background: #88bfe8; /* Old browsers */
background: -moz-linear-gradient(top, #88bfe8 0%, #70b0e0 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#88bfe8), color-stop(100%,#70b0e0)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #88bfe8 0%,#70b0e0 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #88bfe8 0%,#70b0e0 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #88bfe8 0%,#70b0e0 100%); /* IE10+ */
background: linear-gradient(to bottom, #88bfe8 0%,#70b0e0 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#88bfe8', endColorstr='#70b0e0',GradientType=0 ); /* IE6-9 */
}
#snowman {
margin-top: 2%;
width: 400px;
margin-left: auto;
margin-right: auto;
background-color: pink;
}
#head {
background-color: white;
border-radius: 50%;
width: 150px;
height: 150px;
margin-left: auto;
margin-right: auto;
}
.eye {
background-color: black;
border-radius: 50%;
width: 20px;
height: 20px;
float: left;
}
.eye.left {
margin-left: 30%;
margin-top: 20%;
}
.eye.right {
margin-left: 15%;
margin-top: 20%;
}
#middle {
margin-left: auto;
margin-right: auto;
margin-top: -50px;
background-color: white;
border-radius: 50%;
width: 175px;
height: 175px;
}
.arm.left {
position: relative;
top: -120px;
left: 30px;
width:100px;
height: 15px;
background-color: Sienna;
}
.arm.right {
position: relative;
top: -130px;
left: 275px;
width:100px;
height: 15px;
background-color: Sienna;
}
#bottom {
margin-left: auto;
margin-right: auto;
margin-top: -70px;
background-color: white;
border-radius: 50%;
width: 200px;
height: 200px;
}
<div id="bg">
<div id="snowman">
<div id="head">
<div class="eye left"></div>
<div class="eye right"></div>
<div class="nose"></div>
<div class="mouth"></div>
</div>
<div id="middle">
</div>
<div class="arm left"></div>
<div class="arm right"></div>
<div id="bottom">
</div>
</div>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment