D
D
Denis2015-10-21 13:49:27
css
Denis, 2015-10-21 13:49:27

How to put an SVG image in a link?

Hello! I recently encountered such a problem: it is necessary that the svg image be a link. For some reason, such a record form displays only an image, but not as an image - a link.

<a href="" class="logo logo_footer">
  <object data="images/content/logo_footer.svg" type="image/svg+xml">
  </object>
</a>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ostin, 2015-10-21
@nitso

objectcannot be turned into a link. But you can use the tag <img>to display the same picture.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question