Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have made a test nav and a sub nav, Where my problem starts.

The test you can access at: mqxy3km25x - CodeSandbox[^]

Css only would be highly appreciated if not vanilla js should be ok to.

Every help is appreciated.

What I have tried:

I've tried to use,

position: fixed; with top: 0;

Which obv won't work because it shouldn't be focused at 0 px from top and 

position: sticky; 

which doesn't work either.
Posted
Comments
Bryian Tan 9-Nov-18 7:40am    
The sample only shows. What the issue?
RED
BLUE
YEET
...
Member 13992907 9-Nov-18 11:49am    
Have you tried scrolling down? You see that the blue nav has a white space above any idea how i can remove that?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900