L
L
lavezzi12015-11-26 16:27:02
css
lavezzi1, 2015-11-26 16:27:02

Is it possible to change the size of the sprite icon?

Hello. In general, there are i icons, the path to the big picture is indicated through the pseudoclass - a set of icons and through the background-position they are selected. But for some reason it is not possible to change the size of the icon - make it smaller. It just cuts off the icon. How to be?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
prodavec macdonalds, 2015-11-26
@lavezzi1

you can use fractional zoom to zoom out

N
Nikita K., 2015-11-27
@bonilka

Use the background-size property to set the desired size for the sprite. Then set the required size for the i tag . Is not it so?

I
Ivanq, 2015-11-26
@Ivanq

Add to [i] width/height?

O
OKF, 2015-11-26
@OKF

Alternatively, transform: scale(.5);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question