Created
October 24, 2012 16:45
-
-
Save xav76/3947250 to your computer and use it in GitHub Desktop.
A CodePen by James Doyle. No Web Font Stars - Using html special characters to make some stars
This file contains hidden or 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 hidden or 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