Created
November 8, 2012 20:41
-
-
Save ws/4041440 to your computer and use it in GitHub Desktop.
Snowman
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
/** | |
* 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; | |
} | |
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 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> |
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-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