html - Wider input fields in bootstrap modal -


this question has answer here:

this how modal looks now. how can modal wider?

one thing works using this

<span class="input-group-addon" id="sizing-addon1"> 

but makes fields this. notice grey thing on left. makes last input field smaller vertically.

edit: solved! seems trick.

input style="width:100%" 

thanks anyway!

here's code.

<div class="modal fade" id="examplemodal" tabindex="-1" role="dialog" aria-labelledby="examplemodallabel">    <div class="modal-dialog" role="document">      <div class="modal-content">        <div class="modal-header">          <button type="button" class="close" data-dismiss="modal" aria-label="close"><span aria-hidden="true">&times;</span></button>          <h4 class="modal-title" id="examplemodallabel">new message</h4>        </div>        <div class="modal-body">          <form role="form">              <div class="form-group">              <label for="first-name" class="control-label"></label>              <input type="text" class="form-control" id="first-name" placeholder="first name">            </div>              <div class="form-group">              <label for="last-name" class="control-label"></label>              <input type="text" class="form-control" id="last-name" placeholder="last name">            </div>              <div class="email">              <label for="recipient-name" class="control-label"></label>              <input type="email" class="form-control" id="email" placeholder="your email">            </div>              <div class="form-group">              <label for="message-text" class="control-label"></label>              <textarea class="form-control" id="message-text" placeholder="enter message here."></textarea>            </div>          </form>        </div>        <div class="modal-footer">          <button type="button" class="btn btn-default" data-dismiss="modal">close</button>          <button type="button" class="btn btn-primary">send message</button>        </div>      </div>    </div>  </div>

there various classes different size inputs

 :class=>"input-mini"   :class=>"input-small"   :class=>"input-medium"   :class=>"input-large"   :class=>"input-xlarge"   :class=>"input-xxlarge" 

or

in bootstrap 3.0 :

set heights using classes .input-lg, , set widths using grid column classes .col-lg-*.

<div class="row">     <div class="col-xs-2">         <input type="text" class="form-control" placeholder=".col-xs-2">     </div>     <div class="col-xs-3">         <input type="text" class="form-control" placeholder=".col-xs-3">     </div>     <div class="col-xs-4">         <input type="text" class="form-control" placeholder=".col-xs-4">     </div> </div> 

http://getbootstrap.com/css/#forms-control-sizes


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -