Skip to content

Instantly share code, notes, and snippets.

@GoktugOzturk
Created March 9, 2018 13:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GoktugOzturk/556d4c8a188404410f89de639b5659cf to your computer and use it in GitHub Desktop.
Save GoktugOzturk/556d4c8a188404410f89de639b5659cf to your computer and use it in GitHub Desktop.
Perfect Star SVG Polygon
<!DOCTYPE html>
<html>
<body>
<style>
.star {
width: 16px;
}
.star polygon {
fill: red;
stroke-width: 0;
fill-rule: nonzero;
}
</style>
<svg viewbox="0 0 170 170" class="star">
<polygon points="85,0 136,153 4,59 166,59 34,153"/>
</svg>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment