Next.js Discord

Discord Forum

Where is the gradient coming from?

Unanswered
Saltwater Crocodile posted this in #help-forum
Open in Discord
Saltwater CrocodileOP
Hi, this might be a pretty generic question about CSS but i dont understand how is this happening. ive got my page(in the screenshot) and the code. there is a strange repeating gradient for some reason. any idea why? im not setting a gradient or bg image anywhere

8 Replies

Check your global.css, it should be imported in your root layout
Saltwater CrocodileOP
oh yeah! youre correct! there was a gradient there!
but
if i remove the h1
the gradient gets removed too
is there any particular reason to this?
@Saltwater Crocodile is there any particular reason to this?
That I'm not sure of without seeing more code
Saltwater CrocodileOP
i guess it could be caused by the navbar - since it has absolute positioning