The text field in the provided link should only be 10px wide but it is currently displaying a width of 152px
.
Here is the code snippet:
.input {
width: 100%;
box-sizing: border-box;
}
.cont {
padding: 2px;
}
.main {
position: absolute;
border: 1px solid black;
min-width: 15px;
}
<div class='main'>
<div class='cont'>
<input type="text" class='input' />
</div>
</div>
<br/>
<br/>
<br/> The intended width of the textbox was meant to be 10px.
The correct width for the input field is only achieved once the parent element .main
has a min-width
greater than 156px.