How to access specific element via #id with css

Question:
How can I apply CSS to elements via an #id?

Product:
Wix Studio

What are you trying to achieve:
Apply custom css to an image element.

What have you already tried:
E.g.:

.image{
  filter: grayscale(100%);
}

Changes all images on the website due to the class .image.
But I want to select a specific image via it’s id.


.image #CategorieImg1{
  filter: grayscale(100%);
}

That doesn’t work as well as:


#CategorieImg1{
  filter: grayscale(100%);
}

Selecting by ids is not supported but you can define a custom class on a specific element and select based on that: Introduction - Velo API Reference - Wix.com

Great! Works perfectly.
Thanks