I've encountered an issue with the borders of text fields while working on a project involving CSS/HTML. The problem is that in the browser, the borders appear shorter than the text fields.
Initially, I attempted to adjust the border size to match the text field, which seemed to work. However, upon testing it on a larger screen using Internet Explorer (IE), the same problem reappeared.
Below is a snippet of my code:
<tr>
<td>First Name</td>
<td>
<div style="border:4px #26a570 solid;
background-color:white;
width:37.5%;
height:15%">
<input type="text" name="txtFirst" id="txtFirst" />
</div>
</td>
</tr>
I am looking for a solution where the border automatically scales to match the size of the text box across all browsers and screens.