Hi,
first of all very nice module and I choose this one instead of another one...
Is there is the way to put the button inside the Sheet instead of the body?
what I mean is - for example - the website I'm working on are orientated for Photographers, and most of them have a LARGE screens - the website content sheet have fixed width 1024px - so imagine somebody have the screen resolution of width 1920px or more... so the button will be on the edge of the screen, far away from the content.
How to make it inside the content sheet or just next to the border of the content sheet ?
In the attachment I have the current position of the div and desired position the last inside kos-content div, indicated with the arrow.
Please assist if this possible.
Comment | File | Size | Author |
---|---|---|---|
bactotop_placement.png | 22.42 KB | KoshaK |
Comments
Comment #1
acke CreditAttribution: acke commentedI think the best way is to provide the back to top as a block so you can place it, but thats not possible right now. But it should also be possible to change the code in js/back_to_top.js so the selector body instead is your kos-content div, i e:
Comment #3
upunkt CreditAttribution: upunkt commentedI cannot build patches where I'm at work, but here is what I just did to Backtotop 7.x 1.4 to get this functionality mentioned by acke on the Back-to-Top-settings page. Note: I put all code inside php-tags just for better readability.
However, you'll have to alter your CSS also: unset top and left of the button-css and prefer to work with margins. There is some guidance here: http://stackoverflow.com/questions/6794000/fixed-position-but-relative-to-container/15559540#15559540
Maybe acke can add this to his wonderful module.
back_to_top.admin.inc (changes from line 59)
back_to_top.module (changes from line 37)
js/back_to_top.js (changes from line 6)