I'm struggling to horizontally align these badges next to each other, as inline-block isn't working and they keep stacking vertically instead of side by side.
How can I achieve the alignment shown in the image below?
This is the desired appearance:
.tgr_card span {
display: block;
width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>test</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap/font/bootstrap-icons.css">
</head>
<body>
<div class="card tgr_card" style="width: 30rem;">
<div class="card-body">
<h5 class="card-title d-flex justify-content-between align-items-center">
Name
<div class="text-end">
<button type="button" class="btn-close" aria-label="Close"></button>
</div>
</h5>
<h6 class="card-subtitle mb-2 text-muted">#x</h6>
<br>
<ul class="list-group list-group-flush tgr_card_ul">
<li class="list-group-item d-flex justify-content-between align-items-center">
Name
<span class="badge bg-primary rounded-2">test</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Min Max
<div class="row">
<div class="col">
<span class="badge bg-primary rounded-2">1</span>
</div>
<div class="col">
<span class="badge bg-primary rounded-2">None</span>
</div>
</div>
<!-- <div>
<span class="badge bg-primary rounded-2">1</span>
<span class="badge bg-primary rounded-2">None</span>
</div> -->
<!-- <span class="badge bg-primary rounded-2">1 | None</span> -->
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Name
<span class="badge bg-primary rounded-2">test</span>
</li>
</ul>
</div>
<div class="card-footer text-muted text-center">
<a href="#" class="btn btn-primary" style="width: 100%;">footer</a>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
</body>
</html>
Using Bootstrap v5.3.0 alpha-1
Edit: The badges are aligned horizontally in the snippet, but what I mean is that I want them to be side by side and have the same width as the full-width badge above/below (refer to the attached image) - so both badges should be 50% width and consistent with the ones above and below.