In my Bootstrap 3 project, I have a row of buttons. One of them is an <a>
button with the following code:
<a class='btn btn-default' role='button'>Button here</a>
; while the others are all <button>
elements styled in the same way.
I anticipated that they would all be properly aligned and spaced out, similar to the examples shown in Bootstrap's documentation. However, this was not the case, as illustrated below:
https://i.sstatic.net/3kW6a.png
Clearly visible in the image, the first button specified as <a>
does not have the correct margin with respect to the next button. What could be causing this issue?
Here is the HTML code I am using:
<a class="btn btn-default" role="button">
<i class="fa fa-download" aria-hidden="true"></i> Download Image
</a>
<button class="btn btn-default">
<i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit Title
</button>
<button class="btn btn-default">Export</button>
<button class="btn btn-danger">Delete</button>