Help using <div>
2015-05-19, 06:49 PM,
#1
Hey, i´m struggling here with my php template. What i would like to have is same "social buttons" like here http://www.myfreemediacloud.com/download...me=keyword

Basically i need to have these on same line and centered but i haven`t found a solution. The script i have at the moment is this:

<a href="#" onclick="this.style.cursor='default'; return false;"><div style="background: url(/download/facebook.png) no-repeat 0 0; height:20px; width:85px; float:left; font-size:12px; color: #000; line-height:12px; margin-right:20px;"><div style=" padding-top:5px; padding-left:60px;">242</div></div></a>

<a href="#" onclick="this.style.cursor='default'; return false;"><div style="background: url(/download/twitter.png) no-repeat 0 0; height:20px; width:91px; float:left; font-size:12px; color: #000; line-height:12px; margin-right:20px;"><div style="padding-top:5px; padding-left:67px;">103</div></div></a>

<a href="#" onclick="this.style.cursor='default'; return false;"><div style="background: url(/download/googleplus.png) no-repeat 0 0; height:20px; width:69px; float:left; font-size:12px; color: #000; line-height:12px;"><div style="padding-top:5px; padding-left:43px;">292</div></div></a>


I really need to get it fixed.

Thanks!
Reply
2015-05-19, 07:52 PM,
#2
Try this just add your margins and spacing etc


Code:
<div id="social-icons">
<a href="https://twitter.com/YOUR_USER_NAME"><img src="YOUR_IMAGE_URL" width="48" height="48" alt="Twitter" /></a>
<a href="http://www.Plus.Google.com/in/YOUR_DISPLAY_NAME"><img src="YOUR_IMAGE_URL" width="48" height="48" alt="GooglePlus" /></a>
<a href="http://www.facebook.com/YOUR_FB_IDENTIFIER"><img src="YOUR_IMAGE_URL" width="48" height="48" alt="Facebook" /></a>
</div>

Hope this helps
Reply
2015-05-19, 08:27 PM,
#3
Just group them in a div like the above code and then you can use CSS put them where you want. If you need any help quote me :)
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  disable a <div> after clicking 2 times per day per user roktim 7 318 2017-07-20, 11:50 PM
Last Post: metros
  help needes with google.LT SitraM 3 298 2014-09-25, 10:58 AM
Last Post: ShopHub
  Video as background on Div Element [Help] fieldy2012 6 1,226 2014-01-31, 12:36 AM
Last Post: qannabōs





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top