I need to have my two buttons, Update
and Cancel
, displayed next to each other on the same line.
Currently, there is a gap between the two buttons as shown in the attached image.
Below is the HTML code I am using:
<div class="form_block span2">
<br>
<input class="btn btn-primary" type="submit" value="Update" style="display:inline;"/>
<a class="btn btn-danger" style="display:inline;" href="{% url profile_detail profile.user.username %}">Cancel</a>
</div>
How can I ensure that the two buttons are displayed side by side?