M
M
Mikhail Gilmutdinov2017-05-10 12:24:56
css
Mikhail Gilmutdinov, 2017-05-10 12:24:56

How to wrap an object svg with a reference?

I don’t understand what the snag
is. The following options do not work:

<a xlink:href="/" class="navbar-brand"><object id="logo" type="image/svg+xml" data="....svg">Вставка SVG</object></a>

I tried to insert inside .svg - but for some reason the link opens inside the SVG container itself. Yes, and this option will not work, since the link works when you click not on the container, but on
<svg id="..." data-name="..." xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 815.05 131.93">
<a xlink:href="/"
<path></path>
</a>
</svg>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2017-05-10
@Mixailhr

<a href=""> 
  <svg> 
    this is code svg
  </svg>
 </a>

and that's not possible?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question