I want to make a kind of "To Do List" with delete and edit buttons but every time I add a new element, these buttons are badly organized, they are left as follows
How can I get the buttons to be well centered within the cadfa element of the list?
Insertion Code
$(".agregarCate").click(function () {
if ($("#custom_textbox").val() != "") {
var deleteButton = "<button class='delete btn btn-warning'>Borrar</button>";
var editButton = "<button class='edit btn btn-success'>Editar</button>";
var twoButtons = "<div class='btn-group pull-right'>" + deleteButton + editButton + "</div>";
$(".list_of_items").append("<li class='list-group-item'>" + "<div class='text_holder'>" + $("#custom_textbox").val() + twoButtons + "</div></li>");
$("#custom_textbox").val('');
}
});
Thank you.
EDITED