Next.js Discord

Discord Forum

Why is inline styling working but styleName isn't?

Answered
chan posted this in #help-forum
Open in Discord
Avatar
When I try styling my component using my style sheet's class name it doesn't style it properly. Works fine when doing it inline. First time I've ran into this type of issue. Am I going insane? Why isn't this working properly?
Image
Image
Answered by chan
it's because my styles had quotes in them..
View full answer

4 Replies

Avatar
Yellow and black potter wasp
Did you import global.css?
Avatar
yes yes. all my other styles work perfectly
Avatar
it's because my styles had quotes in them..
Answer
Avatar
I am going insane