I'm trying to get the input to take all available space inside this flexbox but not extend beyond the width of the flexbox.
<div>
<input type="number"/>
<button>OK</button>
</div>
div
{
display:flex;
width:100px;
position:relative;
border:solid 1px #000;
}
input
{
flex:1;
display:block;
border:none;
}
The problem is that the input is overflowing the containing flexbox div. If I set the input's width to 100% it seems to work in Chrome but fail in FF. How should this be done?