+ 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>

18th Feb 2018, 7:40 AM
Ashutosh
Ashutosh - avatar
4 Réponses
+ 10
I guess you use the float incorrectly. It supposed to be a CSS style instead of directly apply as an attribute.
18th Feb 2018, 8:07 AM
Zephyr Koo
Zephyr Koo - avatar
+ 11
@Ashutosh You're welcome! 😉
18th Feb 2018, 9:18 AM
Zephyr Koo
Zephyr Koo - avatar
+ 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">
18th Feb 2018, 8:12 AM
David Carroll
David Carroll - avatar
+ 3
thanks for answering
18th Feb 2018, 8:13 AM
Ashutosh
Ashutosh - avatar