A
A
Anton2021-08-07 07:16:36
css
Anton, 2021-08-07 07:16:36

How to change the color of the svg of such a plan background-image: url("data:image/svg+xml;?

Hello.

How to change the color of svg?
Searched the internet, found options, but even the color has not changed.

background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M22 2L2 22'/%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M2 2l20 20'/%3E%3C/svg%3E");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SHKD, 2021-08-07
@SHKD

The fill='%23fff' and stroke='%23fff' properties specify the outer and inner color of an element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question