I have a set of two buttons next to a progress bar, for which the buttons are wrapped with a <div>
:
<div class="block">
<div class="progress progress-striped active">
<div class="progress-bar" role="progressbar" style="width: 100%;"></div>
</div>
<div class="btn-group">
<button type="button" class="btn btn-default btn-xs" title="Delete">
<gly icon="trash"></gly>
</button>
<button type="button" class="btn btn-default btn-xs" title="Toggle Repeat">
<gly icon="repeat"></gly>
</button>
</div>
</div>
http://jsfiddle.net/DerekL/M3NnV/
This works perfectly fine. Keep in mind that there is a small gap between the progress bar and the set of buttons.
This is just a template. What I want to do is to generate these codes programmatically:
//Code is in the fiddle
http://jsfiddle.net/DerekL/54Jhc/
The resulting HTML, by comparing with my template, looks the same. But that gap I was talking about has gone. I have tried inspecting the elements, and see what is causing the gap (I want the gap to be there) to appear but no luck. There's no margin nor padding hiding in there.
How do I get my space back?