Answers for "svg not work correctly in img rag"

1

svg icon not showing html

<div class="social-icon">
<object data="assets/twitter-wrap.svg" type="image/svg+xml"></object>
</div>
Posted by: Guest on March-30-2020
1

svg img tag not showing

in the svg file change

xlink:href="data:img/png;base64,

to

xlink:href="data:image/png;base64,
Posted by: Guest on August-06-2020

Browse Popular Code Answers by Language