Reputation: 3271
I am using badges
in a list-group
and have problem aligning the badge vertically. If the text length is such that it almost fills the list-group width, then the badges gets pushed down.
Here is a jsfiddle http://jsfiddle.net/mdrfuu43/ Please move the result panel to find cases when the text width is same as list-group width.
Upvotes: 1
Views: 71
Reputation: 9416
Check my fiddle, I have wrapped the text and badges in separate wrappers.
enter code here
http://jsfiddle.net/Jinukurian7/mdrfuu43/4/
If you want your badges stay the right side without going down, then check this fiddle.
http://jsfiddle.net/Jinukurian7/mdrfuu43/8/
Upvotes: 1
Reputation: 9341
I have posted here. Try this
.badge{
overflow: auto;
display: inline-flex;
height: 20px;
}
Upvotes: 1