I'm already scratching my head a bit regarding CSS-Bootstrap input / load widths. I have a form with information about the client address. I would like to make a โFirst Nameโ (first name, middle name and last name) and an embedded form / line where the three input results are equal to the width of the other inputs (using class="input-xxlarge"
).
When I use "input- *" (for example, "input-small") on each input, they are too wide or too narrow (in general).
<div class="control-group"> <label class="control-label" for="FirstName">Name</label> <div class="controls"> <input class="input-small" id="FirstName" name="FirstName" placeholder="First name" type="text" value="" /> <input class="input-small" id="MiddleName" name="MiddleName" placeholder="Middle name" type="text" value="" /> <input class="input-small" id="LastName" name="LastName" placeholder="Last name" type="text" value="" /> </div> </div>
http://jsfiddle.net/RXGKN/
Setting the percentage width (inline) is also not a solution. Is there anyone who could do this, so that the left and right sides fit "perfectly" with the rest of the inputs (including responsiveness)?
Is there a way to define a "string" that is equal to the width of "input-xxlarge", and use spanX (like span4) for each entry in "control-group"> "controls".
source share