On the webpage I am making, I want to add a search bar. I have a div container for the entire searchbar and I have a text input and a button inside of it. What i am trying to achieve is, that the text input fills out the entire parent div except for the search button.
Currently the HTML is this:
<div style="margin: 8px; margin-bottom: 32px; padding: 1px; background-color: #888; ">
<input type="text" name="search" placeholder="Search..." style="padding: 14px; font-size: 16px;">
<button type="submit" style="float: right; padding: 16px;">
<i class='fa fa-search'></i>
</button>
</div>
I tried entering "100%" in the width but that didn't work. I could use JS but im sure there is an easy, plain-html approach to this.