Ok folks, I am still stuck, after many iterations I cannot get the second, (twitter) button to show at all, as you can see, I am positioning through classes, on the li declaration I have tried display:inline, display:block; before the onhover function on the first, (facebook icon), was working properly, presently it is not. Any help would be much appreciated.
Code:
.share {
position: relative;
width: 230px;
height: 42px;
background-image: url('../images/sharebg.jpg');
background-repeat: no-repeat;
border-bottom:2px orange solid;
z-index: 1000;
}
.share ul {
margin: 0;
padding: 0;
list-style-type: none;
width:230px;
height:42px;
}
.share li {
float: left;
display:block;
}
.custom-facebook-button a {
background: url('../images/facebook.png') 100% 100% no-repeat;
position:absolute;
width: 40px;
height: 40px;
background-position:0px 0px;
z-index:1002
}
.custom-facebook-button a:hover {
background: url('../images/facebookh.png') 100% 100% no-repeat;
background-position:0px 0px;
}
.custom-tweet-button a {
background: url('../images/tweet.png') 100% 100% no-repeat;
position:absolute;
background-position:50px 0px;
width: 40px;
height:40px;
z-index:1003
}
.custom-tweet-button a:hover {
background: url('../images/tweeth.png') 100% 100% no-repeat;
background-position:50px 0px;
}
Code:
<div class="share" />
<ul class="share">
<li><div class="custom-facebook-button"><a href="http://www.facebook.com/share.php?u=#" target="_blank" rel="nofollow"></a></div></li>
<li><div class="custom-tweet-button">
<a href="http://twitter.com/share?url=#" target="_blank" rel="nofollow"></a></div></li>
</ul>
</div>
Bookmarks