asp.net - Bootstrap 3 input group not working with select element -


i trying input-group styled in bootstrap 3 drop-down selector, using sample code:

<div class="form-group">   <div class="input-group">     <span class="input-group-btn">       <select class="btn">         <option>usd</option>         <option>gbp</option>         <option>zar</option>       </select>     </span>     <input type="text" class="form-control">     <span class="input-group-btn">       <div class="btn btn-default" type="button">button</div>     </span>   </div> </div> 

it works fine in bootply (http://www.bootply.com/zvsundnxif):

input group working

but if put site (asp.net web forms) using same code, breaks:

bootstrap 3.1.1 broken input group

i wouldn't mind (in vanilla bootstrap it's lacking border around select box), except i'm using bootswatch themed version, doesn't align properly:

bootswatch 3.1.1. broken input group

the css path input group body > form > div #mainbody > div.row > div.col-md-9 > div.form-group.

if remove select element, displays fine, there wrong how i've defined that?

try adding row class form-group div parent of select element. select element breaking form div , going row. adding row class kept inside visually although still going outside html form tag. going post separately.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -