Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Dummies guide of creating 'go to top of page'

jjmoon
Registered User
Quote
2023-08-18 10:36:51

Hi.

I have a long page and need a grade 1 Dummies guide of how to create a 'go to top of page' . When I say 'dummies' I mean a real dummies guide ! . If possible some screen shots.

Much appreciation to anyone that helps.


micaelo
Registered User
Quote
2023-08-18 11:26:13

I guess you would like to have something similar to the Phone button I have placed on this page.
https://weingutschickjugenheim.d...
In this example clicking the button will open the phone app but you can also make it a back-to-top button. It will always be in reach and visible, no matter of the scroll position.

Here is how:
-> Drag a Named Anchor somewhere to the top of your page. If you don't style it won't be visible.
-> Give it the name "top"
-> Drag a Styled Button somewhere onto your page and style it as you like. Insert the text "top of page" or something like that.
-> Right-click the button
-> Select "HTML Code ..."
-> Select "Additional CSS styles"
-> Insert this code, with a blank before and after
 position: fixed; z-index: 100; top: 65vh; 

-> Click "OK"
-> Again, right-click the button
-> Select "Insert Hyperlink"
-> Select "Page in this project"
-> Select the named anchor
-> Click "OK"

The code string
top: 65vh;
causes the browser to display the button at a height of 65% of the viewport height. Try alternative entries to make it fit your page layout, but be sure the height is appropriate for small mobile devices too.

I don't have screenshots on hand but you can check my tutorial on Fixed Containers (at the end of page)
https://4hundert.de/rctips/fixed...

And as icing on the cake, you can make your page scroll back to top smoothly rather than just jump. See my tutorial on Smooth Scrolling
https://4hundert.de/rctips/smoot...


jjmoon
Registered User
Quote
2023-08-18 11:57:52

Thank you micaelo. the button works but does not appear where I set it at the bottom of the page. it appears about a third way down from the top. I thiunk this will annoy viewers. Is there an easy way to hard set it in a fixed position?


micaelo
Registered User
Quote
2023-08-18 12:03:35

Try
 bottom: 0; 
instaed of
 top: 65vh; 



jjmoon
Registered User
Quote
2023-08-18 12:10:35

Thanks micaelo, but the button is still 'floating' in the center of screen. I want it to be static like an image at the bottom of the page.


micaelo
Registered User
Quote
2023-08-18 12:18:04

 bottom: 0; 
should work. Check for typos!


jjmoon
Registered User
Quote
2023-08-18 12:24:29

Thank you. Works now. I have one more question (it's my first time using the app) ...

There is a rogue '>' at the top of the page. i can see it in the html code but I can't delete it.

I edited it out in an external text editor and saved the page but when I reopen RocketCake the '>' is still there.

I have the registerd version. Is there an easy way to edit and save HTML in the app?


jjmoon
Registered User
Quote
2023-08-18 12:27:59

Sorry - ignore last request. I can edit now and fixed the >.

Thank you very much for your help. I really appreciate it.

Cheers, Jackson.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact