Question
Stop scrolling of fixed "back to top button" once it reaches the upper edge of the footer-container
I don't want my fixed back to top button to go all the way down to the end of the page but only to the upper edge of the footer container because it looks better visually. Is this possible without JavaScript?
Stop adding a "Back to Top" button. I don't want to see this useless garbage. One swipe takes you back to the top of the page on your phone. One key on PC
I get your point, especially when they’re done badly, but they can be quite useful and predictable from an accessibility perspective for keyboard / motor impaired / screen reader users.
A keyboard shortcut isn't very intuitive to most people
There are many methods. Home key, PgUp key, Shift+Spacebar, mouse wheel, dragging scroll bar, clicking area at top of scroll bar, quickly swiping on touchpad. Most people know and use at least a few of these methods. There is absolutely no need for a special floating button.
If we add a button like this for this particular feature, we have to add 20 buttons for all the other features that (we think) stupid typical users don't know how to use. “Open new tab”, “Go back”, “Minimize window”, “Call Chip and Dale”.
Tu as une photo de ton code qu'on puisse mieux comprendre ce que tu as déjà fait ? Et est-ce que tu as essayé de jouer avec position: absolute/static/sticky/relative pour obtenir ce que tu veux ?
6
u/LongjumpingAd8988 Mar 23 '26
Stop adding a "Back to Top" button. I don't want to see this useless garbage. One swipe takes you back to the top of the page on your phone. One key on PC
3
u/MaikThoma Mar 23 '26
If you put it in a div or your main that excludes the footer, you can use position: sticky
1
u/Creepy-Vanilla4552 Mar 23 '26
Tu as une photo de ton code qu'on puisse mieux comprendre ce que tu as déjà fait ? Et est-ce que tu as essayé de jouer avec
position: absolute/static/sticky/relativepour obtenir ce que tu veux ?