I have a project that closely resembles the code snippet below, with the addition of Material Design icons as outlined in .
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<p>Contact us and we'll get back to you as soon as possible.</p>
<ul class="list-group list-group-flush">
<li class="list-group-item">
<i class="mdi mdi-map-marker"></i>
<div>Av. St. Andreu 116, 08392 St. Andreu de Llavaneres, Spain</div>
</li>
<li class="list-group-item">
<i class="mdi mdi-phone"></i>
+34 937927406
</li>
<li class="list-group-item">
<i class="mdi mdi-email"></i>
<a href=mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0775666b61477762626c2974686b72736e686974">[email protected]</a>><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="394b58555f79495c5c52174a56554c4d5056574a">[email protected]</a></a>
</li>
</ul>
When utilizing the icons, it appears like this:
https://i.sstatic.net/DFSV1.png
The icon seems to be integrated 'as part of the text', likely due to being an inline element, even when the address is placed within a div
.
To change this layout so it more closely resembles a table, aligning the address text on a new line with the previous one, while still using Bootstrap 4's .list-group-flush
for the 'row layout', what would be the most effective approach? Would converting the li
to a flex box be the best solution?