Next Js App messing up styles when going to a certain page/route
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
There's an issue happening in my next js app. Whenever I go a particular route/page in my application. The height of the navbar decreases. The footer moves a bit downwards. And mind you this is happening on only that page only. After that if I go to another page, the messed up styles stays like that. Unless I refresh it and then it's back to default. But this page/route has been causing this problem.
3 Replies
Tomistoma
Its hard to say anything without seeing the code
Kawakawa
You should look up the padding and margin styles on related components.
Are you using tailwind or CSS and if CSS you should use modules that way only the CSS imported to the component is used. If you use regular CSS it can interfere with subsequent CSS imports