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

The Archive Base Latest Questions

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

I have an inputfield that should exactly look like the normal body-text. It does

  • 0

I have an inputfield that should exactly look like the normal body-text.
It does not have anything special specified. In my css reset I have this …

input, textarea, button, select {
    margin: 0;
    font-size: 100%;
    line-height: normal;
    vertical-align: baseline;
}

The text inside the input field is bigger than the one above … see my example screenshot. The lower line is an inputfield, the upper line normal text.

enter image description here

This occurs in all browsers. If I would change the font-size for inputs to 97% it would be about right. However I simply don’t get why text-inputs resize the font-size?

any thoughts on that?

  • 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-09T04:59:43+00:00Added an answer on June 9, 2026 at 4:59 am

    You need to set font-size on the input too as it won’t inherit it from the body directly.

    This is because newer browsers will use it’s own base stylesheet to format the inputs.

    http://jsfiddle.net/mjPE9/ (default font in firefox will be serif, but inputs will always get a sans-serif font if not specified differently)

    If you use Firebug you can see all this User agent styles the browser sets if you check Show user agent styles in the Style tab dropdown. The file used is forms.css – you can easily find it on your system and check what it’s happening behind the scenes if you do a search.

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

Sidebar

Related Questions

On this form, I have some input field and select boxes that should not
I have an input field that is by default set to type=text so that
Using HTML5 I have an input field that should validate against a dollar amount
I have two regular expressions for one user input field that should accept a
Hey guys, unusual question: I have a input field #birthday that should accept european
i have a Tablecell with an Inputfield in it. The Inputfield should fill up
I have an input field on a page that looks something like this: <input
I have input text and I want to increase the number that is inside
Let's imagine that we have something like: $.post('somescript.php', 'WHAT CAN WE PUT HERE?', function(replyData)
I have an input field that uses Autocomplete to show a list of possible

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.