How to make a back-to-top button using CSS and HTML only? -


what i'm trying kind of back top button scroll down , point on page! instance have long text , want bring user next paragraph having him click on link... i've done in past can't remember how did life of me...

what want put "anchor" @ top of page, using <a> tag (it's not useful links!). then, when have link goes #nameofanchor, scrolls anchor name. you'd this:

<a name="top"></a> <!--content here--> <a href="#top">back top</a> 

here working jsfiddle: http://jsfiddle.net/qf0m9arp/1/


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -