Created
December 17, 2011 13:46
-
-
Save ynonp/1490256 to your computer and use it in GitHub Desktop.
An SVG Smiley face
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
/** | |
* An SVG Smiley face | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; | |
} | |
svg { | |
display: block; | |
width: 100px; | |
margin: 0 auto; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<svg> | |
<g transform='translate(0,60)'> | |
<rect width=100 height=100 /> | |
<circle r=15 fill='red' id='c' cx=25 cy=30 /> | |
<circle r=15 fill='red' id='c' cx=75 cy=30 /> | |
<g transform='translate(15,65)'> | |
<path d="M0,0 A40,40 10 0,0 65,0" fill=none stroke=white stroke-width=5 /> | |
</g> | |
</g> | |
</svg> |
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
{"page":"css","view":"split"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment