Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SVG background image

ANSWERED

What is the best/correct way to define a background image in an SVG?

 

<svg class="background" >

 

</svg>

Author | ch, passion for improvement.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I don't know if this is the best way but, this is how I do it,

<svg class="background">
       <image id="image" href="yourimage.png" width="100%" height="100%"/>
</svg>

View best answer in original post

Best Answer
2 REPLIES 2

I don't know if this is the best way but, this is how I do it,

<svg class="background">
       <image id="image" href="yourimage.png" width="100%" height="100%"/>
</svg>
Best Answer

@4463- thank you for your help, works!

Author | ch, passion for improvement.

Best Answer