I got a following set up using the lastest twitter bootstrap framework:
I now want that the input field takes the maximum width when there is no button next to.
How can I do this with pure css or with twitter-bootstrap itself?
Something like inline-block should go, I just don’t get it at the moment…
EDIT : since bootstrap v3, classes have evolved so use col-xx-X classes to obtain the result explained below (further changes may be necessary)
Live demo (jsfiddle)
You could use a
.row-fluidand use.spanXto make the inputs fill their container :It appears that a little fix is needed for the button/input combination :
Last thing, you shouldn’t combine
.spanXand.wellbecause of thepaddingand borders and other things, here is an example of why (jsfiddle).