Skip to content

Instantly share code, notes, and snippets.

@shaan360
Created September 6, 2012 15:56
Show Gist options
  • Save shaan360/3657773 to your computer and use it in GitHub Desktop.
Save shaan360/3657773 to your computer and use it in GitHub Desktop.
Using html special characters to make some stars
<ul>
<li><a href="#">&#9733</a></li>
<li><a href="#">&#9733</a></li>
<li><a href="#">&#9733</a></li>
<li><a href="#">&#9733</a></li>
<li><a href="#">&#9733</a></li>
</ul>
body {
background: #222;
margin: 2em;
}
ul {
list-style: none;
}
ul li a{
text-decoration: none;
float: left;
font-family: Arial;
font-weight: bold;
font-size: 2em;
margin-right:0.2em;
color: rgba(255,255,255,0.1);
text-shadow:0 -1px 1px black, 0 1px 1px transparent;
}
ul li a:hover {
color: #FFC517;
text-shadow:0 -1px 1px white, 0 1px 1px black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment