D
D
Daria Farbak2021-08-05 17:28:43
Sass
Daria Farbak, 2021-08-05 17:28:43

How to make a background for icons?

610bf77815447267265473.pngCan you please tell me how to make such a background for icons?610bf588b732a103237909.png

<div class="user-nav">
                    <a class="user-nav__link user-nav__link--serch" style="background-image: url(images/icons/iconf1.png);" href="#">
                        <img class="user-nav__img" src="images/icons/icon.png" alt="user btn">
                    </a>
                    <a class="user-nav__link user-nav__link--liked" href="#">
                        <img class="user-nav__img" src="images/icons/liked.png" alt="user btn">
                        <span class="user-nav__num">0</span>
                    </a>
                    <a class="user-nav__link user-nav__link--basket" href="#">
                        <img class="user-nav__img" src="images/icons/basket.png" alt="user btn">
                        <span class="user-nav__num">0</span>
                    </a>
                    <a class="user-nav__link user-nav__link--other" style="background-image: url(images/icons/iconf4.png);" href="#">
                        <img class="user-nav__img" src="images/icons/other.png" alt="user btn">
                    </a>
                </div>

you only need what is in the center

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Triborg-333, 2021-08-05
@Triborg-333

.user-nav a {
background-color:#EDF1F4;
border-radius: 50px
width: 100px
height: 100px;
margin: 0px 5px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question