My research came up with a several ways to insert SVG images inside an html page.
Using <img>
is the most simple one but lack of ability as coloring the icons, which is my main need. So, I've read about using <object>
but this still doesn't let me styling it using css fill command.
Putting the bulk of <svg>
data is also non acceptable since I want to use the images as a refernced images.
I've also read about jQuery solution but I use angularJS.
So, I've read a lot about the ability of SVG Icons, and how better they are rather than the old PNG-Sprite or the IconFonts hype. but unfortunatelly, I cant find any good reference for using it. Can anyone help me here?
tried this already, this doesn't work:
html:
<object data="your.svg" type="image/svg+xml" id="myImage"></object>
css:
#myImage {
fill: #fff;
}