# Help creating a jump to top button

**URL:** <https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118>\
**Category:** Development\
**Created:** [30 Luglio 2017, 7:42pm UTC](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118 "2017-07-30T19:42:55Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [3 Agosto 2017, 12:49pm UTC](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118/15 "2017-08-03T12:49:20Z")

</div>

This is ugly and a bit hacky but it works:

After Header:

```plaintext
<div id="jumptotop" onclick="Discourse. __container__.lookup('controller:topic').send('jumpToIndex', 1)">
Jump to Top
</div>

```

Minimal CSS:

```plaintext
#jumptotop{
    padding:5px;
    position: fixed;
    bottom: 0px;
    right: 50px;
    background-color: red;
}

```

Shouldn’t be hard to make that prettier 🙂

---

_[View the full topic](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118)._
