Created
September 6, 2012 15:56
-
-
Save shaan360/3657773 to your computer and use it in GitHub Desktop.
Using html special characters to make some stars
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
<ul> | |
<li><a href="#">★</a></li> | |
<li><a href="#">★</a></li> | |
<li><a href="#">★</a></li> | |
<li><a href="#">★</a></li> | |
<li><a href="#">★</a></li> | |
</ul> |
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
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