R
R
Rakfor2021-02-03 18:35:40
css
Rakfor, 2021-02-03 18:35:40

Why doesn't hover work for font awesome icon?

<div class="previewLinks">
               <div class="previewLinks1">
<i class="far fa-star"></i><a href="#">Рейтинги</a>участников
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nowm, 2021-02-03
@nowm

Hover doesn't work because the icon is next to the tag <a>. And it should be inside.

<div class="previewLinks">
    <div class="previewLinks1">
        <!-- Неправильно -->
        <i class="far fa-star"></i><a href="#">Рейтинги</a>участников
        <!-- Правильно -->
        <a href="#"><i class="far fa-star"></i> Рейтинги</a> участников
    </div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question