homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Facebook button +1 button not displaying (div issue?)

Msg#: 4430421 posted 7:01 pm on Mar 17, 2012 (gmt 0)

I'm trying to place social media buttons in a div that positions itself relatively and twitter works without an issue but my Facebook and Google +1 buttons do not display. I apologize if you cringe at my coding here, I'm not a webmaster but a musician who can't afford to hire a webmaster, so any help you can give me in getting these buttons to display would be hugely appreciated!

I'll post the code for the whole page as it's relatively simple.

<!DOCTYPE html>

<link href='http://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet'>

<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);


html, body, div, span, object, a, h1, h2, h3, h4, h5, h6, p, blockquote, em, img, strong, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, a { margin:0; padding:0; border:0; outline:0; vertical-align:baseline; background:transparent; }
html { width: 100%; height: 100%; }
* { cursor: default; }
a { cursor: pointer; }

html {
background: url(http://www.therealhoneybear.com/images/path.jpg) no-repeat center center fixed;

-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;

font-family: 'Josefin Sans', sans-serif;
font-weight: 400;

body {
margin: 40px 25px;

a {
text-decoration: none;
color: white;

#header {
font-size: 5em;
position: absolute;
top: 17px;
left: 51px;

#social {
position: absolute;
right: 0px;

#social img {
display: block;

#footer {
font-size: 2.5em;
position: absolute;
right: 3px;

#like {
display: inline-block;
position: absolute;
left: 3px;




<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div id="social"><a href="http://www.facebook.com/honeybearmusic"><img src="http://www.therealhoneybear.com/images/facebook.png" alt="facebook" /></a> <a href="http://www.twitter.com/iamhoneybear"><img src="http://www.therealhoneybear.com/images/twitter.png" alt="twitter" /></a> <a href="http://www.soundcloud.com/therealhoneybear"><img src="http://www.therealhoneybear.com/images/soundcloud.png" alt="soundcloud" /></a></div>
<div id="header"><a href="index.html">honeybear</a></div>
<div id="footer"><a href="shows.html">shows</a> <a href="http://honeybear.bandcamp.com/album/viral-linguistics">shop</a> <a href="http://www.soundcloud.com/therealhoneybear">listen</a></div>
<div id="like">
<a href="https://twitter.com/iamhoneybear" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @iamhoneybear</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<g:plusone annotation="none"></g:plusone>
<div class="fb-like-box" data-href="http://www.facebook.com/honeybearmusic" data-width="292" data-show-faces="false" data-stream="false" data-header="false"></div>


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved