I have something like this:
<div class="container">
<embed src="files/image.svg" type="image/svg+xml" id="my-svg" />
<h1>Title</h1>
<h2>Sub title</h2>
</div>
Coupled with a stylesheet, style.css
, that is referenced in my HTML file, along with the external SVG file like so:
<?xml-stylesheet type="text/css" href="style.css"?>
What I'm looking to do is change the fill of the SVG when the container is rolled over. Is this possible with pure CSS?
I know it's possible to do something like this in the css;
rect:hover {
fill: white;
}
But, is it possible to do something along the lines of this?
.container:hover rect {
fill: white;
}
Cheers!