SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member barbar2's Avatar
    Join Date
    May 2013
    Location
    Jordan
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Facebook Like Button

    Hello, I tried to place Facebook like button on my website but didn't get it.
    I use this code:
    Code:
    <div style="position:fixed; top:0px; width:100%; height:50px;">FACEBOOK LIKE BUTTON</div>
    And i put this code there:
    Code:
    <div class="fb-like" data-href="http://facebook.com/mypage" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div>
    When i do that it disappears. Anyone can modify that codes?
    Thanks in advance.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,481
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    It all depends what else you have on your page and wheter you have elements on top of the fixed position button.

    I just tested your code with my like button and it works ok:

    http://www.pmob.co.uk/temp/fbook-test.htm


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •