Next.js Discord

Discord Forum

Why is inline styling working but styleName isn't?

Answered
chan posted this in #help-forum
Open in Discord
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?
Answered by chan
it's because my styles had quotes in them..
View full answer

4 Replies

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