Struggling to create a versatile box with delete and edit buttons integrated within. Despite numerous attempts, the horizontal alignment of the icons remains elusive.
.inputBox .content {
flex: 2;
}
.inputBox .icon {
flex: 1;
max-width: 50px;
}
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div>
<div class="inputBox d-flex">
<div class="bg-dark text-white rounded-left p-2 content align-middle">
<input name="text" placeholder="This is a test" />
<span>Link text</span>
<br /> test<br />
</div>
<a href="#" class="bg-info text-white p-2 icon">
<i class="fa fa-edit fa-lg"></i>
</a>
<a href="#" class="bg-danger text-white p-2 icon rounded-right">
<span>
<i class="fa fa-trash fa-lg"></i>
</span>
</a>
</div>
</div>