One of my div's names is "N/A (nationwide)", and I have an scss file for css properties. How would I apply css to this div?
neither
.N/A{
}
.(nationwide){
}
seem to work.
One of my div's names is "N/A (nationwide)", and I have an scss file for css properties. How would I apply css to this div?
neither
.N/A{
}
.(nationwide){
}
seem to work.
You need to escape the /
character with a backslash, like this:
.N\/A{
...
}
There are other questions about the allowed characters in class names, and you can also check the Grammar on W3 that /
isn't an allowed character in class names.
I'm not aware of any Sass rule that allows it.