Spills of fluid
Here is the approach: Demo (jsbin)
<li> <div class="row-fluid"> <div class="input-prepend box-shadow clearfix" style="border-radius: 3px;"> <span class="add-on span2" style="width: 14.2%;float: left;">email</span> <input class="span1" style="width: 85.8%;float: left;border-right: 0;border-tradius: 0;border-bottom-right-radius: 0;" type="text" name="#" value="#hello" placeholder="Edit project"/> </div> </div> </li>
width and float should override what responds to span s behavior, the rest of the inline style is to make the field a bit prettier.
A similar question arises without any problems with the shell: Injecting fluid - adding Bootstrap in the answer
Absolute positioning
Update version 2.3: you need .input-fullwidth { display: block; } .input-fullwidth { display: block; } , Updated demo (jsfiddle)
Another approach would be with absolute positioning: Demo (jsfiddle)
.input-prepend.input-fullwidth { position: relative; } .input-prepend.input-fullwidth .add-on { width: 40px; } .input-prepend.input-fullwidth .input-wrapper { position: absolute; display: block; left: 51px; right: 0; top: 0; bottom: 0; } .input-prepend.input-fullwidth .input-wrapper input { width: 100%; height: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
<div class="input-prepend input-fullwidth"> <span class="add-on">email</span> <div class="input-wrapper"><input type="text" name="#" value="#hello" placeholder="Edit project"/></div> </div>
Ultimately you can look for the flexbox CSS3 function (w3.org)
source share