I assumed that aligning content vertically in a div
should be easier compared to using a table:
Edit: I want to align the first and last columns while keeping the others as they are.
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8eece1e1fafdfafceffecebba0bea0bc">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f6949999828582849786b6c3d8c6d8c4">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="row bg-dark text-white">
<div class="col-sm-2 align-items-center">align me vertically
</div>
<div class="col-sm-1">
<div class="row text-center">
<span class="text-center">1</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
</div>
<div class="col-sm-2">
<div class="row">
<span class="text-center">2</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
<div class="row mb-1">
some text could be here
</div>
</div>
<div class="col-sm-1">
<div class="row text-center">
<span class="text-center">3</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
</div>
<div class="col-sm-1">
<div class="row text-center">
<span class="text-center">4</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
</div>
<div class="col-sm-1">
<div class="row text-center">
<span class="text-center">5</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
</div>
<div class="col-sm-1">
<div class="row text-center">
<span class="text-center">6</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
</div>
<div class="col-sm-1">
<div class="row text-center">
<span class="text-center">7</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
</div>
<div class="col-sm-1">
<div class="row text-center">
<span class="text-center">8</span>
</div>
<div class="row">
<img src="https://pngimg.com/uploads/futurama/futurama_PNG73.png" class="img-fluid">
</div>
</div>
<div class="col-sm-1 text-end align-middle">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="red" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<line x1="15" y1="9" x2="9" y2="15"></line>
<line x1="9" y1="9" x2="15" y2="15"></line>
</svg>
</div>
</div>
How can I vertically align the text and the SVG?