- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
October 9, 2011 at 10:55 am #34697Ben_DerbyParticipant
Hi,
I am trying to put some css3 social networking icons on my site.
here is the css code:-
/* SOCIAL ICONS - GENERAL */
.social { list-style:none; margin:10px auto; width:464px; }
.social li { display:inline; float:; background-repeat:no-repeat; }
.social li a { display:block; width:48px; height:48px; padding-right:1px; position:relative; text-decoration:none; }
.social li a strong { font-weight:normal; position:absolute; left:20px; top:-1px; color:#fff; padding:3px; z-index:9999;
text-shadow:1px 1px 0 rgba(0, 0, 0, 0.75); background-color:rgba(0, 0, 0, 0.7);
-moz-border-radius:3px; -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); -webkit-border-radius:3px; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); border-radius:3px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
li.apple { background-image:url("../images/Apple.png"); }
li.myspace { background-image:url("../images/myspace.png"); }
li.youtube { background-image:url("images/youtube.png"); }
li.twitter { background-image:url("../images/twitter.png"); }
/* SOCIAL ICONS - CSS3 */
#css3:hover li { opacity:0.2; }
#css3 li { -webkit-transition-property: opacity; -webkit-transition-duration: 500ms;
-moz-transition-property: opacity; -moz-transition-duration: 500ms; }
#css3 li a strong { opacity:0;
-webkit-transition-property: opacity, top; -webkit-transition-duration: 300ms;
-moz-transition-property: opacity, top; -moz-transition-duration: 300ms; }
#css3 li:hover { opacity:1; }
#css3 li:hover a strong { opacity:1; top:-10px; }I can’t aline it to the very right is there something I have done wrong?
Thanks
Ben
October 9, 2011 at 4:00 pm #88772BillyParticipant1. I can’t see where you tried to position it on the right; you just wrote “float:;” on line 3. Maybe if you put “float: right;” Or seeing as they’re list items, you could: “text-align: right;” them.
2. The bottom of the code is weirdly styled; commented or something for some reason -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘Other’ is closed to new topics and replies.