I'm currently working on creating a sprite image for the bottom links on our media page, but I seem to be having trouble getting the image to crop correctly. Can anyone point out where I may be making a mistake?
CSS
.footer{
position:absolute;
bottom:0px;
margin:5px;
border:2px solid grey;
width:200px;
height:55px;
overflow:hidden;
display:block;
}
#twitter{
background:url('http://unifiedforunifat.com/redesign/resources/social.jpg') no-repeat;
height:50px;
width:50px;
background-position: 0 0;
display:block;
}
#twitter a:hover{
background:url('http://unifiedforunifat.com/redesign/resources/social.jpg');
background-position: 0 50px;
}
HTML:
<div class="footer">
<a href="https://twitter.com/unified4unifat" id="twitter" class="imglink" >
<img src="http://unifiedforunifat.com/redesign/resources/social.jpg" alt="U4U's Twitter"
/>
</a>
</div>