In bootstrap input groups out of the box has a width of 100% but what i would like to achieve is to set them with a fixed max-width of 100px. But then the right hand side does not stretch the full width for my dropdown.
Example code: http://plnkr.co/edit/D0N3SKvT5U0uVmYyLw0O?p=preview
<style>
.input-group-addon {
width: 100px;
}
</style>
...
<div class="form-group">
<div class="input-group">
<div class="input-group-addon">Name</div>
<input type="text" class="form-control" id="name" value="Please enter your name">
</div>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-addon">Age</div>
<select class="form-control" id="age">
</select>
</div>
</div>
Anyone know how to do this?
2
Answers
I am not so sure whether you are looking for something like this Plunker.
hope it helps you.
try this it will help you
change the style to