Solved

Align social buttons correctly

Posted on 2010-09-19
4
610 Views
Last Modified: 2012-05-10
Hello, I am trying to put social buttons facebook and tweetmeme in our site. I liked the way it's done in yahoo sites. Please look

http://finance.yahoo.com/news/General-Motors-to-test-apf-122107979.html?x=0

I looked at yahoo code, but the implementation style is very difficult to understand. It would be great if someone can help me in html/css coding.

Thanks.
0
Comment
Question by:sunseshasai
  • 3
4 Comments
 
LVL 3

Expert Comment

by:arweeks
ID: 33713034
Have you got some code to start with that I could troubleshoot?  Or do you want to write something for you - either is OK.  What alignment issues are you having?  Up/down or left/right?
To be honest, I'd probably just use a table.  It's bad form, but it's quick and it mostly works.
0
 

Author Comment

by:sunseshasai
ID: 33713605
Hello arweeks,

This is the code I have so far.. The issues I am having is Yahoo customized the css by changing the facebook and tweetmeme css behavior. Please check the attached image and compare with it. The code I am using is

-----------------------------
<a name="fb_share" type="button_count" share_url="http://www.yahoo.com" href="http://www.facebook.com/sharer.php">Share</a><script

src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

<script type="text/javascript">
tweetmeme_url = 'http://www.yahoo.com';
tweetmeme_style = 'compact';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
------------------------

Please let me know, can we have exactly they have. I liked the look and feel of that. :)

Thank You.


<a name="fb_share" type="button_count" share_url="http://www.yahoo.com" href="http://www.facebook.com/sharer.php">Share</a><script 



src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>



<script type="text/javascript">

tweetmeme_url = 'http://www.yahoo.com';

tweetmeme_style = 'compact';

</script>

<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>

Open in new window

social.gif
0
 
LVL 3

Accepted Solution

by:
arweeks earned 500 total points
ID: 33713809
What about putting it inside a holding div, then having an adjustment div that brings the twitter one down a little?


<html>
<div class="socialbuttons">

<a name="fb_share" type="button_count" share_url="http://www.yahoo.com" href="http://www.facebook.com/sharer.php">Share</a>

<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
</script>

<div class="tweetAdjust" style="padding-top:3px;position:absolute">
<script type="text/javascript">
tweetmeme_url = 'http://www.yahoo.com';
tweetmeme_style = 'compact';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div></div>
</html>
<html>
<div class="socialbuttons">

<a name="fb_share" type="button_count" share_url="http://www.yahoo.com" href="http://www.facebook.com/sharer.php">Share</a>

<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
</script>

<div class="tweetAdjust" style="padding-top:3px;position:absolute">
<script type="text/javascript">
tweetmeme_url = 'http://www.yahoo.com';
tweetmeme_style = 'compact';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div></div>
</html>

Open in new window

0
 
LVL 3

Expert Comment

by:arweeks
ID: 33759116
Did this resolve the issue?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now