twitter bootstrap - Select field as input group addon -


i want use <select> field input group addon bootstrap3 somehow this

 ------------------------------------- |   select v   |   input text field   |  ------------------------------------- 

so assume achieve using .input-group, .input-group-addon, , .form-control classes.

<div class="input-group">     <select class="input-group-addon" id="protocol">         <option>http://</option>         <option>https://</option>     </select>     <input type="text" class="form-control" id="domain" aria-describedby="protocol"> </div> 

(see bootply example)

but .input-group-addon class doesn't seem work <select> items. looks this:

screenshot

how can fix align this?

you need wrap <select> <div> class .input-group-addon this

<div class="input-group">   <div class="input-group-addon">     <select class="" id="protocol">       <option>http://</option>       <option>https://</option>     </select>   </div>   <input class="form-control" id="domain" aria-describedby="protocol" type="text"> </div> 

example


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo