Jump to content

Embed in the W3.CSS templates the reference to the tutorials.


Ryanfromhere

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...