https://i.sstatic.net/sTWRu.png
Can you help me with adding an icon to a list item using Font Awesome or any other method? I want the icon to appear on the right side of the text. I have four sections of text that I want to convert into expandable dropdowns. I tried adding an arrow pointing down (
<i class="fa-light fa-arrow-down"></i>
) from Font Awesome, but it doesn't seem to be showing up.
.container-fluid {
display: flex;
align-items: center;
justify-content: space-between;
height: 30vw;
background-image: url(pictures/output-onlinepngtools.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
word-break: keep-all;
border: 2px solid rgb(68, 115, 216);
padding-left: 20px;
padding-right: 100px;
}
.container-fluid h1 {
margin: 0;
line-height: calc(30vw / 3);
}
.sec2drop li {
list-style: none;
border-top: 1px solid rgb(161, 159, 159);
line-height: 50px;
}
<div class="container-fluid">
<div class="sec3">
<ul class="sec2drop">
<li>
<i class="fa-light fa-arrow-down"></i> Prepare for a language exam
</li>
<li>Hungarian for kids</li>
<li>Take on a challenge</li>
<li>Translation services</li>
</ul>
</div>
</div>