I designed a layout with two buttons beside a progress bar, where the buttons are enclosed within a <div>
element:
<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/
The layout was functioning properly, with a small gap between the progress bar and buttons.
I aimed to automate the generation of these codes programmatically:
//Code is in the fiddle
http://jsfiddle.net/DerekL/54Jhc/
The resulting HTML from the code appeared identical to my original design. However, the gap that was present before had disappeared. Despite investigating, I could not determine the cause of this missing space. There were no hidden margins or paddings affecting the layout.
How can I restore the gap between elements?