1

Sorry but I don't seem to understand this one, how can I add an SVG into an IMG tag and target it for things like :hover or maybe changing colours at different breakpoints?

HTML

<img src="static/img/partner-logo.svg" alt="" width="118" height="44" class="partner-logo logo">

CSS

.partner-logo:hover {
fill: red
}
styler
  • 15,779
  • 23
  • 81
  • 135

1 Answers1

3

It's not possible, the external content is not accessible.

Your need to embed the SVG markup itself into your HTML document.

Delapouite
  • 9,469
  • 5
  • 36
  • 41