Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to fix the size of password input field?

my html code is

<tr>
                <td>User ID:</td>
                <td><input type="text" id="uid" size="20"></td>
            </tr>
            <tr>
                <td>Password:</td>
                <td><input type="password" id="pass" size="20"></td>
            </tr>
            <tr>

but the problem is, password textbox length is coming diffrent in IE, means uid size is 20 but pass size is around 17.

like image 200
nectar Avatar asked Oct 17 '25 05:10

nectar


1 Answers

Try using style="width:200px" for example rather than specifying size that way.

<input type="text" id="uid" style="width:200px;">
<input type="password" id="pass" style="width:200px;">

Or you can create a class in the CSS like this:

.input{
  width:200px;
}

And use like this:

<input type="text" id="uid" class="input">
<input type="password" id="pass" class="input">
like image 101
Sarfraz Avatar answered Oct 19 '25 23:10

Sarfraz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!