I'm struggling to position the rating stars on the right side without them going outside of the block.
I attempted using 'display: flex' on the parent element, but it didn't solve the issue((
Currently trying to adjust the layout of the RatingUserList
section
.RatingUser {
display: flex;
}
.RatingUserList {
margin-right: 40px;
list-style-type: none;
display: flex;
height: 20px;
}
.RatingCell {
margin-right: 5px;
}
<div class="NameAndRating">
<p class="UserName">John Doe</p>
<!-- user's name in profile -->
<div class="RatingUser">
<ul class="RatingUserList">
<li class="RatingCell"><img class="RatingImg" src="img/RatingStar.svg" alt=""></li>
<li class="RatingCell"><img class="RatingImg" src="img/RatingStar.svg" alt=""></li>
<li class="RatingCell"><img class="RatingImg" src="img/RatingStar.svg" alt=""></li>
<li class="RatingCell"><img class="RatingImg" src="img/RatingStar.svg" alt=""></li>
<li class="RatingCell"><img class="RatingImg" src="img/RatingStar.svg" alt=""></li>
</ul>
</div>
</div>