I am delving into the world of front-end development, starting with a Bootstrap project. However, I have hit a roadblock. I am trying to incorporate badges similar to those in my design, but every attempt throws off the alignment and messes up the layout of the site. Can someone take a look and help me out?
<div class="d-flex flex-column flex-md-row p-4 gap-4 py-md-5 align-items-center justify-content-center">
<div class="list-group">
<label class="list-group-item d-flex gap-3">
<span class="pt-1 form-checked-content">
<strong>Title</strong>
<small class="d-block text-body-secondary">
<svg class="bi me-1" height="1em" width="1em"><use xlink:href="#calendar-event"></use></svg>
23 July
<svg class="bi me-1" height="1em" style="margin-left: 10px;" width="1em"><use
xlink:href="#alarm"></use></svg>
17:00
</small>
<small class="d-block text-body-secondary">
<svg class="bi me-1" height="1em" width="1em"><use xlink:href="#geo-alt"></use></svg>
1,5 km
<svg class="bi me-1" height="1em" style="margin-left: 10px;" width="1em"><use
xlink:href="#car"></use></svg>
19 min
</small>
</span>
<button class="btn btn-secondary position-absolute top-50 translate-middle text-body-secondary"
style="right: 0; background: none; border-color: #00000059;" type="button">
<svg class="bi m-1" height="1em" width="1em">
<use xlink:href="#edit"></use>
</svg>
</button>
</label>
</div>
</div>
What I've already tried:
I attempted adding buttons and styling them, but it resulted in unexpected outcomes. The buttons were placed within the label causing all the text to shift as if in a horizontal grid.