Scroll back to Top of Page in Galleries
Falcon1
Registered Users Posts: 3 Beginner grinner
Has anyone tried adding a floating "Back to Top of Page" button so if someone in scrolling down 100+ pictures in a gallery they can at any time click on the "Back to Top of Page" button and it will take them back to the top of the gallery to access the main menu?
My menu is on top and is not fixed to stay no the screen - nor do I want it to. I thought about adding a small side bar menu that stayed on the screen but wasn't sure how to set up a button or link to take me back to the top.
Thanks for your help.
My menu is on top and is not fixed to stay no the screen - nor do I want it to. I thought about adding a small side bar menu that stayed on the screen but wasn't sure how to set up a button or link to take me back to the top.
Thanks for your help.
0
Comments
I investigated and have this snippet I need to try. I'm not sure it's 100% "right" or complete. You might test it or wait for someone in the know to comment.
As for placing it in your left sidebar, that sounds ingenious. You would need to add some blank space vertically so that the Back would be placed in the right place. Not sure how to do that - a box with invisible borders and some kind of forced px height?
HTML:
BACK TO TOP
CSS:
#topButton {
position: fixed;
bottom: 0;
left: 50%;
width: 90px;
margin-left:-45px;
margin-bottom: 12px;
text-align: center;
padding: 10px;
z-index: 9999;
background-color: #202020;
border: 3px solid red;
border-radius: 10px;
}
How about a link to see it on your site?
http://wowmephotos.smugmug.com/
http://wowmephotos.smugmug.com/
Works on my site that way for lightbox
My Website index | My Blog
http://wowmephotos.smugmug.com/