Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pdxwolfy/7bcc4348e4f654d7c51dabc18c8a1612 to your computer and use it in GitHub Desktop.
Save pdxwolfy/7bcc4348e4f654d7c51dabc18c8a1612 to your computer and use it in GitHub Desktop.
201.07 On Your Own Project: Company Site #01
<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>
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