I have the following snippet:
<html>
<body>
<div style="width: 700px;">
<span>test</span>
<input style="width: 100%;"></input>
</div>
</body>
</html>
But this doesn’t do what I want. I wanted that span and input together would account for 100% of the div i.e. that input would start right where the span ends and fill until the width of the div, without breaking to the next line. How do I do that?
If you need proper fluid width:
See: http://jsfiddle.net/kxEML/
CSS:
HTML: