Internet explorer hidden input border

This might be a rant :-) Its a enoying behavour IE have.

On input boxes, IE 6 makes some hidden border/margin or something on the top and bottom. I will show you:

In IE:

In Firefox:

I made this example with the following HTML:
<div style="width:200px;border:1px solid #000;"><input style="height:10px;"></div>
You would think the input would be 10 pixel high and the div 12 pixel. But in IE the div is 14 pixel high.

Its a good thingy to know, when designing around an input box. This has mostly been a problem when designing cool search boxes.

I can only ask one thing, why oh why?

4 Responses to “Internet explorer hidden input border”

  1. mroldwang Says:

    set text input box border=”0″
    not none will solve this problem.

  2. Rasmus Keil Says:

    In not sure what you mean.
    If its:
    then its not working.

  3. php developper Says:

    Check below code.. it will work with IE and Mozilla..

    #disp {
    border:0px;
    background-color: transparent;
    }

  4. Rasmus Keil Says:

    #php developper

    I tried the css code on my example. The div is still 14 px high, not 12. So it doesnt work.
    Testet in IE7

    <div style="width:200px;border:1px solid #000;"><input style="height:10px;border:0px;background:transparent;"></div>

Leave a Reply