A
A
Absky2018-10-08 21:08:00
css
Absky, 2018-10-08 21:08:00

How to make a responsive svg with the ability to change color without JS?

How to make a responsive svg with the ability to change color without JS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Christina, 2018-10-08
@Absky

If you insert an illustration not inline, i.e. not code , then you need to paste through the tag<svg>bla bla bla</svg>

<object type="image/svg+xml" data="images/your.svg" >

And in the illustration code itself, add
<?xml-stylesheet type="text/css" href="style.css" ?>
and manage from styles as usual.

A
Alexander, 2018-10-08
@AleksandrB

.div>svg>path{
fill: #ffb600;
}

you insert the svg code into html in a block with a conditional div class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question