Forum Moderators: not2easy
<input type="text" style="float: left; width: 80%">
<div style="float: left; width: 75px; margin-left: 15px">SEARCH</div>
<div style="clear: left"></div> <div style="display: flex">
<input type="text" style="width: 100%">
<div style="flex: 0 0 75px; margin-left: 15px">SEARCH</div>
</div> <div style="float: right; width: 75px">SEARCH</div>
<div style="margin-right: 95px; overflow: hidden: border: 1px solid #000">
<input type="text" style="width: 100%; border: none">
</div>
<div style="clear: left"></div> .container {
display: flex
}
.input {
width: 100%
}
.button {
flex: 0 0 75px;
margin-left: 15px
}
/* this is only recognized by IE 6 - 9, and somewhat in IE 10-11
@media \0screen\, screen\9 {
.container {
/* to break the floats */
overflow: hidden
}
.input {
float: left;
width: 80% !important
}
.button {
float: left;
width: 75px;
/* this isn't necessary because it would carry over from above, but for the sake of clarity... */
margin-left: 15px
}
}
<div class="container">
<input type="text" class="input">
<div class="button">SEARCH</div>
</div> <div style="display: flex; overflow: hidden\9">