Comic Fury Webcomic Hosting - I have no idea what I'm doing

You are not logged in. Log in, Register, More info
Forum > Layouts, HTML, CSS & Javascript > I have no idea what I'm doing
Pages: [1]

"I have no idea what I'm doing", 10th Jun 2012, 5:11 PM #1
Guybrush20X6♂

User avatar
Posts: 526
Referrals: 0
Registration date: 22nd Aug 2011
Location: Scotland
I've been strugling for ages to simply get the Like us on FaceBook button to appear next to the latest button but now it just appears at the bottom ot the layout and the top of the extras pages and looks really untidy.

Here's the HTML and the CSS is some one can see where I went wrong and how I can fix it.





_______________________
image
Because not all problems can be solved by sleeping at an inn. Updates Saturdays.
11th Jun 2012, 12:22 AM #2
Guybrush20X6♂

User avatar
Posts: 526
Referrals: 0
Registration date: 22nd Aug 2011
Location: Scotland
If it helps here's the bit of cod that's giving me grief.

<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_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
_______________________
image
Because not all problems can be solved by sleeping at an inn. Updates Saturdays.
"I'm not sure...", 24th Jul 2012, 6:48 AM #3
angry-alien

User avatar
Posts: 26
Referrals: 0
Registration date: 16th Jul 2012
Location: The Moon
...if I understand exactly where you want the button to go, or how to fix it, but I will try to help.

One small problem might be that what you wrote



should have the script that calls the button inside the 'fb-root' container. Like so



Also I find nowhere in the CSS describing any 'fb-root' div id or class.

So something LIKE this anywhere in the CSS may help.



Then move the entire block of spoiler 2 to where you want the item to appear.

That might be a help?
_______________________
____________________________________________

image
24th Jul 2012, 9:07 AM #4
Kyo♂
I got to choose mine
User avatar
Posts: 7031
Referrals: 0
Registration date: 6th Jul 2008
Location: Germany
you guys should really try wrapping some code tags around your code

so
  it
    can
       stay
          indented
_______________________
hello
Forum > Layouts, HTML, CSS & Javascript > I have no idea what I'm doing
Pages: [1]