Jump to content
Sign in to follow this  

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

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.

Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...