N
N
narem2018-02-23 15:59:02
css
narem, 2018-02-23 15:59:02

How to change the content size of the content property?

Through :after I add an image with the property content: url(assets/css/img/dribble.png); How can I change the size of this image on the site? width doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Teploukhov, 2018-02-23
@blood-moon

I would do something like this,

content: "";
  background-image: ('img.png') no-repeat;
  background-size: cover;
  /* Нужный размер */
  height: 20px; /
  width: 20px;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question