Difference between revisions of "Template:Top"

From GodWiki
Jump to navigation Jump to search
m (quick and dirty fix to make "To the Bottom" work on mobile)
m (modified position so it's not floating too far up (again))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div id="BackToTop" class="noprint" style= "position:fixed; top: 87%; left:2%; z-index:9999; padding:0; margin:0;">
+
<div id="BackToTop" class="noprint" style= "position: fixed; bottom: 0; left:2%; z-index:9999; padding:0; margin:0;">
 
{| class="wikitable" style="font-weight: bold; font-size:95%; text-align: center; table-layout: fixed; background: #F0F8FF; "
 
{| class="wikitable" style="font-weight: bold; font-size:95%; text-align: center; table-layout: fixed; background: #F0F8FF; "
|[[#top|Back to the Top]]
+
|[[#top|Back to Top]]
|-
 
|[[#footer-places-privacy|To the Bottom]]
 
 
|}</div><noinclude>
 
|}</div><noinclude>
{{doc|content=The {{tlx|Top}} Template adds floating "Back to the Top" AND "To the Bottom" buttons to the bottom left of any page it is applied on.
+
{{doc|content=The {{tlx|Top}} Template adds floating "Back to Top" button to the bottom left of any page it is applied on.
  
Like the names implies, these buttons allow users to jump back to the top or bottom of the page in a single click. The buttons are static, and therefore do not move when the page is scrolled, and are compatible with mobile view.}}
+
Like the names implies, this buttons allow users to jump back to the top of the page in a single click. The buttons is static, and therefore do not move when the page is scrolled, and is compatible with mobile view.}}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 13:34, 1 May 2021

📚 Documentation

The {{Top}} Template adds floating "Back to Top" button to the bottom left of any page it is applied on.

Like the names implies, this buttons allow users to jump back to the top of the page in a single click. The buttons is static, and therefore do not move when the page is scrolled, and is compatible with mobile view.