DEV Community

Cover image for Tailwind - Fixed bottom
Thiago Costa
Thiago Costa

Posted on

Tailwind - Fixed bottom

In Tailwind's docs, they don't mention how to create a button to take you back to the top, but I've come across one solution for this issue:

when you create and set up your application, copy and paste this code in the top of your page.

`

 <img src="yourimage.png" alt="Up Your Page">
 <span>Subir PΓ‘gina</span>
Enter fullscreen mode Exit fullscreen mode

`

This button (when you click) does your page return to the first div.

Top comments (0)