Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Sunny Side

IamVictheCG• 190

@IamVictheCG

Desktop design screenshot for the Sunnyside agency landing page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Does anyone know to change the color of SVG elements??

Community feedback

Ayobami Ikuewumi• 850

@Ikuewumi

Posted

Hi @IAMVICTHECG. Changing the color of an SVG can only be done if the vector is inline in the html, and doesn't work with an SVG linked in a <img> tag.

If the SVG is in your markup, you can target it with a CSS selector and change its color with the fill css property:

For example

HTML

<svg></svg>

CSS

svg {
    fill: blue;
}
0

IamVictheCG• 190

@IamVictheCG

Posted

@Ikuewumi alright thanks

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord