I attempted to implement the following code in HTML.
However, I am puzzled as to why the text box and div width are not the same size.
Here is what I have experimented with.
<style>
.test
{
border:1px solid red;width:100px;height:30px;padding:3px;
}
</style>
<div class="test">div</div>
<input type="text" value="text box" class="test" />
This is the display I encountered in Firefox.