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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:14:44+00:00 2026-05-30T22:14:44+00:00

The textboxes in my HTML forms have a height of 30px, and the entered

  • 0

The textboxes in my HTML forms have a height of 30px, and the entered text appears in the vertical center of the textboxes, just as I want in every browser – except IE.

I’ve checked it in Chrome, FF and Opera. IE8 shows the entered text higher than the center which looks really bad. I tried playing around with the padding, margin and line-height, but cannot get the text to budge from the top edge.

Any suggestions on what CSS property do I need to edit to center the text? I could add it as a IE specific style, if needed.

The website in question is lazydragonbooks.com. Two forms immediately visible are the ‘Register’ and ‘Login’ forms.

Chrome

enter image description here

IE 8

enter image description here

  • 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-05-30T22:14:45+00:00Added an answer on May 30, 2026 at 10:14 pm

    Well, messing with IE8 developer tools I found that setting padding-bottom: 0; and padding-top: 10px; aligned the text correctly.

    You would have to use a conditional statement to avoid messing up proper browsers. I would recommend using a separate stylesheet:

    <!--[if IE 8]>
        <link rel="stylesheet" type="text/css" href="ie8.css">
    <![endif]-->
    

    Within ie8.css..

       input[type="text"] {
                padding-top: 10px;
                padding-bottom: 0;
        }
    

    This is of course specific to an input with the set height that you are using.

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

Sidebar

Related Questions

I have two text boxes t1 and t2 in an html page. I'd like
I have a HTML textbox, I restrict from special characters being entered. But when
I have html form with lot of textboxes, and three optional image uploads. How
I have an HTML form containing some textboxes and two jqGrids. The user selects
I have a very simple example jsfiddle : HTML: <input type=text/> <input type=text value=aaa/>
I have a html form(ASP.Net MVC). The input textboxes are wrapped in a div
I have an ASP.NET Web Forms application. There is a page with TextBoxes and
I have a simple MVC form with the following elements: <%= Html.TextBox(FechaInicio) %> Which
I setup custom CSS class for array of dynamic TextBoxes (inputs as HTML) so...
I have a rich html textbox on my asp.net mvc application. The rich html

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.