Skip to main content

Add a Floating Back to Top Button in your Blog / Website

Bismillah! The following article is about "back to top" buttons for websites or blogs made with the help of some simple CSS and HTML code. Back to Top button is a button which is used to go to the top of the page. When a user comes downwards reading any article or any other thing on the page of the blog or website then it is difficult and a little bit time-taking work to go back to the top of the page. So if you add a button for this purpose then your site's users / visitors can easily go to top by clicking it. Almost every professional website and blog has a "go to top" or "back to top button".
This tutorial is for you to add a back to top button easily in your blog or website. The steps to add this button are given below:


1. Open your website / blog's HTML and paste the following code just above the </body> tag
<!--BACK2TOP-IMAGE-STARTS-TECHMODULES.BLOGSPOT.COM--><a alt="Back to Top" style="display:scroll;position:fixed;bottom:25px;left:5px;" href="#" title="Back to Top"><img onmouseover="this.src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0otq9AroZVkirnly4gopxD-vtXIuERRtSjVoebV5eLCB1lqY4Tf4dUm8ijPdyfO9Y4Hlat2H3UWrTwUzYH42CEVih-wkJf80MoR66rjjFnV8hMSZ_9MRNAOO9Vzn1MSGHRS2CbhYpKQw/s1600/Back2Top_2.jpg&#39;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmnmofH6RZBe2qSOdctP4GiNqX9jRgb1M7JNSfOIg-qEVWjakfF86aBPVHBaVbQtYHsmN9eoY4vbDBg0tbZu3CsKfhQq8ppzqC35Fm2d6fdXQT-8E_YE3DhckP5RuOAHq3OpiwbjH2ilw/s1600/B2T_Small.jpg" onmouseout="this.src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmnmofH6RZBe2qSOdctP4GiNqX9jRgb1M7JNSfOIg-qEVWjakfF86aBPVHBaVbQtYHsmN9eoY4vbDBg0tbZu3CsKfhQq8ppzqC35Fm2d6fdXQT-8E_YE3DhckP5RuOAHq3OpiwbjH2ilw/s1600/B2T_Small.jpg&#39;" /></a> 
<!--BACK2TOP-IMAGE-STOPS-TECHMODULES.BLOGSPOT.COM-->
2. OPTIONAL: You can change the red code with your own image URL.
You have done it. Now refresh your website to check the button.

Features:

  • Fixed position on the page
  • Easy customization
  • Zoom effect on mouse over
  • No effect on page loading speed

Note: Please give your comments about this article with the comment form below.

Comments

  1. great blog will be trying out these on my blog.

    ReplyDelete
  2. They will surely help a lot.Thanks a lot ! Would definitely try out in my blog also.
    web design company

    ReplyDelete

Post a Comment

Popular posts from this blog

Get a Best Free Web Hosting from ByteHost.Com

A website is necessary for every business or a job now a days. And to make a website, a web hosting is needed. Many people who can't afford paid web hosting search for a good free web hosting site to make their websites. These are free but they have also some disadvantages such as they are not reliable and your data can be removed any time. Or many of these hosting site are very slow and they give small bandwidth. And some site insert their own advertisements in your site. Among the free hosting websites, there are many site which are better than others with fast speed, large bandwidth and more storage space. I suggest you to use Byethost.Com .

How to Block / Unblock a Website in Your Windows Computer?

Sometimes people want to block any website in their computer. For example if you are a father / mother and want to keep your child away from facebook or any other social networking website etc. so you want to block these site but don't know how to do it. You can block that specific website in your computer by a simple method and then unblock it with the same method. There is no use of any external software. This tutorial is for those people who want to block any website or websites in their PC.

5 things you should know about the qualities of a good blogger

There's thousands of bloggers beginners who want to succeed with blogging, but many do not know how. I'm not sure they will all become successful bloggers, only people who will be on the right track. So you might ask me  "How do I choose the right path?"  The answer lies in your brain.Yes, the forms are correct in your brain.  You have full control to choose what you do. So your brain is the master of choosing the right ways. In other words, you should have thought before you can correctly choose the right one. So if you want to become a successful blogger, the first things you must determine is what is a successful blogger? Or exactly what are the qualities you need to become a successful blogger?  Here are the answers:   1.  Hard work.  I read many blogs of successful bloggers and I note that they never teach or advise how to get rich quickly. They say they do not like someone's getting rich overnight. And the...