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

  • SEARCH
  • Home
  • 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 7984201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:11:38+00:00 2026-06-04T11:11:38+00:00

I have a very simple button. The text appears right centered vertically respect the

  • 0

I have a very simple button. The text appears right centered vertically respect the square when you see it in Safari or Chrome. But in Firefox the text is not centered vertically (it looks down) How to solve this?

http://jsfiddle.net/yyL5T/5/

HTML:

<div class="buy">mmmmm</div>

CSS:

body {
  font-family:Tahoma;
  color:#fff; 
  font-size:11px; 
  letter-spacing:1px;
}

.buy {
  position:absolute;
  width: 70px;
  height: 20px;
  line-height:20px;
  top:50px;
  left:50px;
  text-align:center;
  background-color:#bbb;
}
  • 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-06-04T11:11:39+00:00Added an answer on June 4, 2026 at 11:11 am

    It seems that Firefox have some problems to center text when the div is not very high. (I don’t know why). In this specific case: font-family: Tahoma; font-size: 11px; the div needs to be 23px or more if we want it to be well centered in the div

    .buy {
      position:absolute;
      width: 70px;
      height: 25px; /* this is what changes */
      line-height:25px; /* this is what changes */
      top:50px;
      left:50px;
      text-align:center;
      background-color:#bbb;
    }
    

    Playing here: http://jsfiddle.net/yyL5T/8/

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

Sidebar

Related Questions

I have a very simple View with a text label and an info button
I want to do very simple thing, but I'm not success. I have button
I have a very simple entry form. After a button is pressed, I need
I have a very simple table with two columns, but has 4.5M rows. CREATE
I have a very simple python script that should scan a text file, which
I have some very simple HTML: <div id=advisor> <div id=print_this_container> <form> <input type=button value=
I have a very simple form, consisting of a textarea and a submit button.
I have a very simple form with a single autocomplete widget. No submit button.
I have a very simple Objective-J webapp that is a label and a button.
I have a very simple gsp page that has a button. I'm trying to

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.