When I create an input box without any styles (<input>
) and then inspect the computed CSS in devtools, it shows a border of 2px inset rgb(238, 238, 238).
However, if I create a div with the same border properties, it looks noticeably different:
<input>
<br><br>
<div style="border: 2px inset rgb(238, 238, 238); height:15px; width: 169px; "></div>
Why is that? And what type of border should I use to achieve the same appearance as the input?