+ 3
I am creating two button but not able to align them in a same line. Although I am using float- right and left!
<div> <div float="left"> <a href="{{url_for('editItem', item_id = item.id)}}"> <button type="button" class="btn btn-success">Edit</button> </a> </div> <div float="right"> <a href="{{url_for('confirmDeleteItem', item_id = item.id)}}"> <button type="button" class="btn btn-danger">Delete</button> </a> </div> </div>
4 Respostas
+ 10
I guess you use the float incorrectly. It supposed to be a CSS style instead of directly apply as an attribute.
+ 11
@Ashutosh You're welcome! 😉
+ 7
You are apply float left and float right using invalid syntax. Try:
<div style="float:left;">
and
<div style="float:right;">
instead of:
<div float="left">
and
<div float="right">
+ 3
thanks for answering