I am trying to create a shortcut and an input field on the same line as a variable width input field that will expand based on the available space
http://jsfiddle.net/chovy/WcQ6J/
<div class="clearfix"> <aside>foo</aside> <span><input type="text" value="Enter text" /></span> </div> .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; content: ""; } .clearfix:after { clear: both; } div { border: 1px solid red; } aside { display: block; width: 100px; background: #eee; float: left; } span { display: block; width: 100%; background: #ccc; } input { width: 100%; box-sizing: border-box; border: 1px solid #000; }
It works fine with a range, but when I add input, it wraps to the next line.
source share