I am trying to create a movie app and I am getting stuck with styling some elements. I am new to CSS and styling. Here is my code. I am trying to display these element one after the other. Here is my code
<ul class="actions">
<li><div class="vote_average">85</div></li>
<li><div class="favorites-heart"><i class="far fa-heart"></i></div></li>
<li><div class="list"><i class="fas fa-list"></i></div></li>
</ul>
.vote_average, .favorites-heart, .list {
font-weight: 300;
font-size: 18px;
/* font-weight: 700; */
line-height: 50px;
position: absolute;
width: 50px;
text-align: center;
}
.favorites-heart::after,
.list::after,
.vote_average::after {
border-radius: 100%;
border: 2px solid #C4AF3D;
/* #ee927b */
content: '';
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.actions {
list-style-type: none;
padding-left: 0px;
display: flex;
align-items: center;
}
.actions li {
/* display: inline-flex; */
flex-direction: column;
padding-right: 40px;
}
here is what it currently looks like
Here is an example of what i want it to look like
Basically I am trying to get each element to display next to each other is a row pattern. I would like to have a background that contrasts the icon glyphs.