Having trouble centering bootstrap star icons alongside review text in my website design. Even after embedding the svgs within my code and utilizing Bootstrap 4 classes, here's the current appearance:
Review star icons and text layout:
https://i.sstatic.net/2f4K7tgM.png
Snippet of my code:
.reviews {
color: black;
}
.review-name {
font-weight: 700;
margin-bottom: 2px;
margin-top: 40px;
}
.review-location {
font-weight: 400;
}
.stars-container {
vertical-align: center;
}
.stars {}
.review-date {
font-weight: 400;
}
.review-content {
font-size: .9rem;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bad8d5d5cec9cec8dbcafa8f94899489">[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="56343939222522243726166378657865">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<section id="reviews" class="reviews container-md">
<div class="review-item">
<p class="review-name">Brian C.</p>
<p class="review-location">REVIEW LOCATION</p>
<p class="review-date">
<span class="stars"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
<!-- SVGs for each star icon go here -->
</span> Jul 10, 2019
</p>
<p class="review-content">REVIEW TEXT</p>
<p class="blockquote-footer">Yelp</p>
</div>
</section>
Attempts to use the vertical-align property did not work as expected. The stars-container and stars classes were unresponsive to this styling. I also experimented with mx-auto (or my-auto) Bootstrap classes suggested by others, but unfortunately, no success. Seeking further solutions.