i need some help with twitter bootstrap.
I have a list group with n items. Every item has a name, needs a remove button and a litte text-input box.
------------------------------------
| ______________ ___ |
| NAME | TEXT INPUT | | X | |
| -------------- --- |
------------------------------------
I tried out a lot of methods, with input-groups… but i didnt get a nice result.
Here is one of my tries
<a class="list-group-item" href="#">
ITEM NAME
<div class="input-group input-group-sm pull-right">
<input class="form-control" type="text" >
</div>
</a>
4
Answers
@Faisal Ashfaq
I tried out your code, in jsfiddle it looks pretty nice, but in my application I get a sizing bug.
It looks like this
The Add Button is a little bit smaller then the other elements.
Referring to https://getbootstrap.com/components/#input-groups:
You tried that one?
https://plnkr.co/edit/YyTtOzx7cro5DPw6qzmz?p=preview
You can do the following
here a working demo
and also you can do the following if you want to display the “Name” as a part of the text
here another working demo
You can try following: