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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:29:11+00:00 2026-06-08T10:29:11+00:00

I have a button nicely lined up with an input box in this fiddle

  • 0

I have a button nicely lined up with an input box in this fiddle here (I’m working in Safari right now )

http://jsfiddle.net/hNx6E/13/

However the height of the button does not add up to the height of the input. Here are my calculations.

Button Height = Font Height + Padding Top + Padding Bottom + Border Top + Border Bottom =

16+8+8+1+1 = 34

Input Height = Height + Border Top + Border Bottom =

34+1+1 = 36

There is a missing 2px some where.

Note in the fiddle I do my normalization at the end and normalize all ( I think used elements ).

p , input, div, body

Also note in the fiddle that I have CSS normalization turned off b.c. I do it manually.

Fiddle quit responding but next I was going to try their normalization to determine if I left off some element I am un-aware of…up now…just checked the normalize box on the left but this did not change anything.

Right now i consider this a hack b.c I just changed my height by 2px to account for the missing pixels…but I’d like it working in a way I understand.

  • 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-08T10:29:14+00:00Added an answer on June 8, 2026 at 10:29 am

    34+1+1 = 36 // fixed

    What? Input’s width is 34px + 2px for border, that’s 36px total. The next problem is line-height, which increases height of the button.

    I set line-height: 1em for #po_but and width: 32px for #po_in, see demo here. The heights now both have 34px.

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

Sidebar

Related Questions

Right now I have these buttons that line up nicely, but they have some
I have event Button that creates text box in run time. Private Sub Button1_Click(ByVal
this is driving me MAD now.. I have a UItableview. Based on an NSMutableArray,
I have a button that when hovered over (mouseover) displays a div right below
I have a button set up that when clicked, expands the page. Here is
I have the following code working nicely: $field2.on(change, #selector, function(){ $field2.load(./index.php?show-options=true, { value: $(this).val()
I have button which post values of form to url but during post i
I have button that a user selects and I pop up a AlertDialog to
I have button in my application that opens android contact application for choose contact
I have button, which fires an event, that deletes a record from the database.

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.