Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1069589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:26:27+00:00 2026-05-16T20:26:27+00:00

I have implemented a Facebook Like button into my site. I wanted to make

  • 0

I have implemented a Facebook Like button into my site.

I wanted to make other buttons which fit the same style as the like button. I made them the same height as the like button, yet regardless my button would appear one pixel above, or below the like button – this was really obvious and looked bad.

Now I am relatively new to CSS, and I dont know what best practices are.

Using Firebug, I tracked back, and worked out that FBML (however it works) is producing a span within which the like button is contained. I assumed this had something to do with the problem.

My resolution was as follows

<div style="display: inline; position: relative; top: 1px;">
    <img src="images/button.png">
</div>

<fb:like layout="button_count" show_faces="false"></fb:like> 

I would be really grateful (for my knowledge) if someone could explain why the FB like button was showing this behaviour, and if how I have fixed it is the best resolution?

Also as a general aside… I have eventually gotten my page displaying exactly as I want.
To do this I have utilized 25 <div>s. This seemed a lot – although my page is somewhat complicated. Is this OK?

Thanks a lot!

EDIT
My div usage is for positioning elements. For example, I want some content to appear on the left and some on the right, so i have a two divs of 50% width side by side.

Then I want a button to appear centered so I have a div with text-align:center; I have done this as i was informed that this was preferable to </center.

After this again i want things on the left and right so i have the same class as the first point output twice again.. This is padded, I want a border around the content. As such I have another div inside which has border:1px solid black;

Is this correct/acceptable usage?
Thx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:26:28+00:00Added an answer on May 16, 2026 at 8:26 pm

    Have you checked the image doesn’t include any white space to confuse the spacing issue?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.