I have created a fiddle here:
http://jsfiddle.net/ozzy/77dJz/
Somehow ( mind you its 4:30am ) I have cocked up the hover effect on facebook link..
Twitter one works… just not sure what I have done wrong.
Any help appreciated, I am tired lol.
To Iterate:
CSS:
#facebook {
background:url('../images/socialsprite.png') no-repeat scroll 0px 0px transparent;
height:40px;
width:180px;
margin-left:10px;
margin-top:30px;
}
#facebook:hover {
background:url('../images/socialsprite.png') no-repeat scroll 0px -40px transparent;
height:40px;
width:180px;
}
#twitter {
background:url('../images/socialsprite.png') no-repeat scroll -180px 0px transparent;
height:40px;
width:180px;
margin-left:210px;
margin-top:-40px;
}
#twitter:hover {
background:url('../images/socialsprite.png') no-repeat scroll -180px -40px transparent;
height:40px;
width:180px;
}
Cheers
Need twitter and facebook sprite to sit side by side horizontally centered in the master div
What you need to do is
floatyourdivsso they don’t cover each other.Here is some simplified CSS. Edit the
margins as needed.http://jsfiddle.net/jasongennaro/77dJz/3/
EDIT
You could further simplify your CSS as follows:
http://jsfiddle.net/jasongennaro/77dJz/4/