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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:40:36+00:00 2026-06-07T11:40:36+00:00

I´m trying to achieve a perfect alignment with a submit button next to a

  • 0

I´m trying to achieve a perfect alignment with a submit button next to a text field, each with its own font size. The problem is that I get different results in different browsers, (my site is supporting IE7+ and all modern browsers).

Here´s what I´m working on: http://jsfiddle.net/bxTfn/18/

It seems to be working in Chrome and IE, but the submit button is 1px too short in FF.

Thanks for your help.

CLARIFICATION: I want the text box to have font size 14px and the submit 12px.

UPDATE:
http://jsfiddle.net/bxTfn/24/
This seems to be working in Chrome, FF and IE7 but not in IE8 and IE9 where the submit jumps down 1px.

  • 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-07T11:40:37+00:00Added an answer on June 7, 2026 at 11:40 am

    box-sizing might be what you’re looking for: http://jsfiddle.net/23CE8/1/

    This worked for me in Chrome and in IE8, however IE8 now mis-aligns the input and the submit button (although they’re the same height). I added vertical-align: middle to both elements (although it could be on their parent container) in order to resolve that.

    If you want IE7 to use box-sizing you’ll need some polyfills, there’s a link to some here from Paul Irish’s blog here: http://paulirish.com/2012/box-sizing-border-box-ftw/ he also explains some of the pros and cons.

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

Sidebar

Related Questions

Im trying to achieve the following effect in rails: If the text is bigger
I'm trying to achieve the following functionality: <div id=editor contenteditable=true> I am some text.
Trying to achieve: same firefox profile throughout tests Problem: Tests are spread over 30
I have trying to achieve SVG element's animation while adding dynamic DOMs for its
What I am trying to achieve is a form that has a button on
Am trying to achieve a couple of things: merge a bunch of individual text
I am trying to achieve gradient text as told by one of the member
Trying to achieve any moving effect while appending an element from one to another
im trying to achieve something but i dont really know how I have set
What I'm trying to achieve is show count of lines starting with/ending with needle

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.