I've been following a "how to create a website" video on youtube and at one point the guy saves an svg file as an html, and links it into the main index.html file using the following:
<div class="logo">{% include icons/logo.html %}</div>
When I tried this, the logo doesn't appear and is replaced by the text "{% include icons/logo.html %}
I'm couldn't get this to work, so I used an img tag and a object tag to link the svg file. Now the svg loads fine in the browser, but I am trying to style it using css to no avail. I have used the following to try changing the fill:
.logo object path {
fill: rgba(0, 0, 0, 0.4);
}
This isn't working either. I can always just change it using opacity - but preferably would like to understand what I'm doing wrong, so I'd be grateful if someone could help out.
Thanks!