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 8365561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:41:24+00:00 2026-06-09T12:41:24+00:00

I have a link converted to a block using css like that: .button-user-add {

  • 0

I have a link converted to a block using css like that:

.button-user-add {
    background: green;
    width: 150px;
    height: 24px;
    display: block;

    float: right;
    text-align: center;
    color: #fff;

    text-transform: uppercase;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;

    font-family: Arial;

    line-height: 24px;

    margin-top: 24px;
    padding: 0px;

}

But the problem is that the padding from the top is about 1px less than from the bottom.

Why?

How can I fix it?

  • 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-09T12:41:25+00:00Added an answer on June 9, 2026 at 12:41 pm

    font-size:15px doesn’t exist for Arial. The browser will round to either 14px or 16px.

    (Correction: Modern browsers now render a wider range of font sizes, including more odd-numbered sizes. Here’s a quick demo showing Arial 12px through 22px.)

    The main part of the text (the space occupied by a capital H) is the baseline height. Above that is the ascender (used for accent marks on capital letters), and below it is the descender (used for the bottom of letters like y p and q).

    font-size = ascender + baseline height + descender
    

    The line-height reserves space for the font to be rendered in, but exactly where within that space the text is rendered varies based on the font-family, the font-size, the browser, and (if there’s no explicit line-height) the default line-height used by the browser. Within the line-height, the text will be roughly, but not exactly, centered.

    As long as there’s an explicit line-height, the position of the text usually varies by no more than 1px from browser-to-browser, at least for Arial. But there’s no way to force the browsers to render the text more consistently than that.

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

Sidebar

Related Questions

I have a link in a cell converted to hyperlink. I looks just fine,
I have link that calls a function when clicked: <a href=javascript:spawnMenu(this); id=link1>Test1</a> To make
I have a link that opens up JSON data in the browser, but unfortunately
I have converted a textbox search to Google Search using : location.href = http://images.google.com/search?q=
I have a button i want to convert the button into a hyper link,
I have a RichTextBox that the user can edit to create a hyperlink (in
I have a page with anchor tags that are being converted to JQuery UI
I want to convert plaintext to link for an input I have. The HTML
Does anyone have an idea, link, library, source code, ... on how to convert
I have link for example domain.com/de/controler/action?param=value and I want make actionlink to keep same

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.