Ryanfromhere Posted February 27, 2020 Share Posted February 27, 2020 I'm trying to recreate the toolbar found here: https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_templates_parallax&stacked=h where it stays on top regardless of scrolling. I'm trying to decipher how the HTML, CSS, and JavaScript play together. It'd be cool if in the comments there were reference links to specific tutorials. Essentially shrink the sandbox a bit. Link to comment Share on other sites More sharing options...
Funce Posted March 4, 2020 Share Posted March 4, 2020 Good suggestion! That would make some of the templates interesting to read. But they're still meant to be templates on their own. In terms of the navbar, it can be summed up like this. stick-to-top { top: 0; position: fixed; } No Javascript required. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now