css - bootstrap: form-control size doesnt change based on parent div col size -


i trying use increase size of text box changing col-md-* value doesn't seem affect child input form-control textbox.

example:

<form id="myform">     <div class="row">         <div class="col-md-2">             name:         </div>         <div class="col-md-8">             <input name="name" type="text" placeholder="enter name ..." class="form-control" required="required" />         </div>     </div> </form> 

in above code text input size doesn't increase think should larger if used col-md-8. text box size same whether use col-md-4 or col-md-6 also. because form-control class in bootstrap defines size? if how can fixed?

try work me

<div class="row">         <form id="myform">             <div class="col-md-2">                 name:             </div>             <div class="col-md-8">                 <input name="name" type="text" placeholder="enter name ..." class="form-control" required="required" />             </div>         </form>      </div> 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -