Tidy up icons after post
-
My website is almost finished, but there are a few things that are a little off…which ruins the look of the site.
After my post, I have some social icons, like (heart) post and post view (numbers). However, they are all off (see screenshot below)
Can i separate them via css, or do you setup <div>’s for each? Im a little confused at what would be the best way to line them up.
Screenshot:
https://oi47.tinypic.com/20s7ryq.jpgLike (heart) css
.post-like{ margin-top:1em } .like{ background:url(images/icons.png) no-repeat; width: 15px; height: 16px; display: block; float:left; margin-right: 4px; -moz-transition: all 0.2s ease-out 0.1s; -webkit-transition: all 0.2s ease-out 0.1s; -o-transition: all 0.2s ease-out 0.1s .post-like a:hover .like{ background-position:-16px 0; } .voted .like, .post-like.alreadyvoted{ background-position:-32px 0; } article footer .post-like{ margin-top:1em } article footer .like{ background:url(images/icons.png) no-repeat 0 0; width: 15px; height: 16px; display: block; float:left; margin-right: 4px; -moz-transition: all 0.2s ease-out 0.1s; -webkit-transition: all 0.2s ease-out 0.1s; -o-transition: all 0.2s ease-out 0.1s } article footer .post-like a:hover .like{ background:url(images/icons.png) no-repeat -16px 0 } article footer .voted .like, article footer .post-like .alreadyvoted{ background-position:-32px 0 }
Social buttons
.social-buttons { display: block; list-style: none; padding: 0; margin: 20px; } .social-buttons > li { display: block; margin: 0; padding: 10px; float: left; } .social-buttons .socialite { display: block; position: relative; background: url('https://beetniksound.com/feedme/wp-content/themes/1_ultragridtheme/images/social-sprite.png') 0 0 no-repeat; } .social-buttons .socialite-loaded { background: none !important; } .social-buttons .twitter-share { width: 55px; height: 65px; background-position: 0 0; } .social-buttons .googleplus-one { width: 50px; height: 65px; background-position: -75px 0; } .social-buttons .facebook-like { width: 50px; height: 65px; background-position: -145px 0; } .vhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
Thanks in advance for any help or suggestions. Even if there was a good CSS forum, I would try that (anything like stackoverflow/exchange but for css?)
Cheers
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Tidy up icons after post’ is closed to new replies.