we must display an input-field and a button with an inner span on the same line.
Button resp. its inner span must have width:auto
, the input text must fill the remaining width.
Fiddle: http://jsfiddle.net/1xfxpm55/
HTML:
<div class="wrapper">
<input type="text">
<button> <span>Auswählen</span>
</button>
</div>
CSS:
.wrapper {
width:100%;
display: table;
}
input {
display: table-cell;
width: 100%;
float: left;
}
button {
display: table-cell;
width: auto;
}
Thanks for any hints