Answer the question
In order to leave comments, you need to log in
How to set styles via css in svg stroke element?
I have stroke="black" in path and I can't manipulate it with css. How to register this element in styles and manipulate it?
<svg width="9" height="6" viewBox="0 0 9 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity="0.3" d="M0.954102 0.826172L4.65962 4.53175L8.36519 0.826172" stroke="black"/>
</svg>
Answer the question
In order to leave comments, you need to log in
svg path {stroke: #CCC;}
and remove the inline color, otherwise it will interrupt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question