Ask coding questions

← Back to all posts
why is the sticky navbar and smooth scroll not working?
VulcanWM

the smooth scroll isnt exactly that smooth. i don't really know if it's because there's less text there or there's a problem with my code.
the sticky navbar is not working and the navbar isn't sticking.
i'm using the code for the sticky navbar here: https://www.w3schools.com/howto/howto_js_navbar_sticky.asp
the css file is here: https://replit.com/@VulcanWM/tutorials#static/main.css
the js file is here: https://replit.com/@VulcanWM/tutorials#static/sticky.js

also can you guys think of a good name for this site. there is some information on the home page

thanks in advance!

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
VulcanWM
Comments
hotnewtop
ch1ck3n

I've edited the css

VulcanWM

omg tysm! @ch1ck3n

ruiwenge2

this is pretty nice

why do you need flask for this though?

VulcanWM

I don’t know JavaScript that much so I’m just going to use jinja to make life easier for me
Plus right now HTML repls aren’t working that well so it’s better to be on the safe side @ruiwenge2

VulcanWM

@ch1ck3n you're good at css can you help?