I want to have a checkbox and text input, both of them will be in one line, the text input is responsive. I tried display inline-block, it worked but I can't make the text input to fill rest of the screen with width 100%, it will go down, why?
https://jsfiddle.net/shk4v0ep/
<div>
<div class="left-wrap">
<input type="checkbox" value="others" />
<label>Others</label>
</div>
<input type="text" value="" />
</div>
.left-wrap {
display: inline-block;
}
input[type="text"] {
display: inline-block;
//width:100%; how to make the input to fill till the rest of the screen
}