After saving my SVG image in Illustrator, the code appears like this:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="10.3 126 503.7 272" style="enable-background:new 10.3 126 503.7 272;" xml:space="preserve">
<style type="text/css">
.st0{fill:#B7B7B7;}
.st1{fill:#33BFC1;}
.st2{fill:#B23939;}
</style>
<path fill="#B7B7B7" class="st0" d="M20.4,126h113c4.3,0,8"/>
<path class="st1" d="M504,126H390c-4.3,0-8,2.7-9.4,6"/>
<path class="st2" d="M420.9,384.6l-92.2-252"/>
</svg>
Including the SVG in my HTML as follows:
<a><img class="logo" src="logo.svg"></a>
As there are 3 paths within the SVG, I am attempting to style each using CSS without directly editing the SVG file.
I have experimented with the following CSS:
.st0 {
fill:#fff;
}
.st0 path {
fill:#fff;
}
Unfortunately, none of these approaches seem to work.