How do I blend the navbar with the hero section?
Unanswered
Siamese Crocodile posted this in #help-forum
Siamese CrocodileOP
I created a Navbar.tsx component and added it to my layout.tsx file. How do I make the navbar stick on top of the background image (this is a hero image i added to the page.tsx file) instead of it looking separated from the hero section?
2 Replies
You can set it as the
background-image for your body elementJumbo flying squid
What Milo said. If that wouldn't be possible for your usecase, then you can make your header
But the
position: absolute so it pops above the background.But the
background-image css would be the correct way to do this.