A Pen by Pete Hanson on CodePen.
Created
February 19, 2018 00:20
-
-
Save pdxwolfy/7bcc4348e4f654d7c51dabc18c8a1612 to your computer and use it in GitHub Desktop.
201.07 On Your Own Project: Company Site #01
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
<footer> | |
<ul> | |
<li><a href="#" class="twitter">Twitter</a></li> | |
<li><a href="#" class="facebook">Facebook</a></li> | |
<li><a href="#" class="email">Email</a></li> | |
<li><a href="#" class="instagram">Instagram</a></li> | |
</ul> | |
</footer> |
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
footer ul { | |
padding: 0; | |
margin: 0; | |
} | |
footer li { | |
display: inline-block; | |
padding: 0 60px; | |
} | |
footer li a { | |
display: block; | |
width: 46px; | |
height: 46px; | |
text-indent: -8685px; | |
overflow: hidden; | |
background: transparent url("http://pdxwolfy.org/LS/FE/201/lesson_9/spacedesign/images/icons_social-media.png") 0 0 no-repeat; | |
} | |
footer li a.twitter { | |
background-position: 0 0; | |
} | |
footer li a.facebook { | |
background-position: 0 -46px; | |
} | |
footer li a.email { | |
background-position: 0 -92px; | |
} | |
footer li a.instagram { | |
background-position: 0 -138px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment