0

I am trying to add an svg image inside of a rectangle which should be positioned in the middle of the rectangle.

I want to add the test.svg local image from the "images" directory.This approach that I did works only with url path.

Is there a different way to make it work with local .svg files?

Later on I am going to have multiple svg files.

Fiddle: https://jsfiddle.net/zo8pyed9/2/

1 Answer 1

2

Your codes are correct but you don't use correct path for href attribute and it can't find your SVG files.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.