However, I want to make it look similar to
where the picture and ranking don't overlap.
This is my CSS and HTML for the element.
.star-list {
display: flex;
align-items: center;
padding: 5px;
width: 680px;
-webkit-box-shadow: 0 10px 6px -6px #777;
-moz-box-shadow: 0 10px 6px -6px #777;
box-shadow: 0px 10px 20px -6px #1abc9c;
background-color: #fff;
border-radius: 10px;
height: 155px;
margin-top: 20px;
margin-left: 10px;
margin-bottom: 10px;
font-size: 5vw;
}
.star-list>img {
height: 140px;
border-radius: 10px;
}
.star-list>.media-content {
width: 1000px;
display: flex;
justify-content: center;
font-weight: 600;
font: black;
font-size: 5vw;
}
<div class="card_body">
<div>
<div class="card word_shadow2">
<div class="card-header">
RANKING
</div>
<div class="card-body" id="star-box">
<div class="star-list">
1
<img src="https://api.buzzanglemusic.com/images/artists/771" alt="Placeholder image" />
<span class="media-content">
Eagles
</span>
</div>
</div>
</div>
</div>
</div>
I would like the ranking to not overlap with the picture. Thanks.
