html center button
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Button align center</title>
<style>
.flex-parent {
display: flex;
}
.jc-center {
justify-content: center;
}
button.margin-right {
margin-right: 20px;
}
</style>
</head>
<body>
<div class="flex-parent jc-center">
<button type="submit" class="green margin-right">Confirm</button>
<button type="submit" class="magenta">Cancel</button>
</div>
</body>
</html>