Answer the question
In order to leave comments, you need to log in
How to set background image in SVG path?
I can’t figure out SVG in any way, once I used it like this
<svg class="advert_image">
<defs>
<pattern id="image" patternUnits="userSpaceOnUse">
<image height="180" width="263" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../images/hex1.png"></image>
</pattern>
</defs>
<path id="svg_2" d="m0,50l132,-50l129,50l2,130l-264,0l1,-130z" fill="url(#image)"></path>
</svg>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question