Your h3
element is being displayed as a block, which is making it give full width.
You can do it either two ways. First, you can change the order of your a
tags:
<h3><a class="btn btn-link" href="#">back</a></h3>
Or you can just add display:inline-block
to your CSS file for the h3
tag.