HeenaSaqib (Talk | contribs) |
HeenaSaqib (Talk | contribs) |
||
Line 67: | Line 67: | ||
width: 125px; | width: 125px; | ||
} | } | ||
+ | |||
+ | .myBtn { | ||
+ | display: none; /* Hidden by default */ | ||
+ | position: fixed; /* Fixed/sticky position */ | ||
+ | bottom: 20px; /* Place the button at the bottom of the page */ | ||
+ | right: 30px; /* Place the button 30px from the right */ | ||
+ | z-index: 99; /* Make sure it does not overlap */ | ||
+ | border: none; /* Remove borders */ | ||
+ | outline: none; /* Remove outline */ | ||
+ | cursor: pointer; /* Add a mouse pointer on hover */ | ||
+ | padding: 15px; /* Some padding */ | ||
+ | border-radius: 10px; /* Rounded corners */ | ||
+ | } | ||
</style> | </style> | ||
Line 74: | Line 87: | ||
<div class="footer-right"> | <div class="footer-right"> | ||
<p> Email: hq@igem.org </p> | <p> Email: hq@igem.org </p> | ||
− | + | <div> | |
+ | <img class="myBtn" src="https://static.igem.org/mediawiki/2017/7/7c/Arrow.jpg"> | ||
+ | function topFunction() { | ||
+ | document.body.scrollTop = 0; // For Chrome, Safari and Opera | ||
+ | document.documentElement.scrollTop = 0; // For IE and Firefox | ||
+ | } | ||
+ | </div> | ||
+ | </div> | ||
Revision as of 04:23, 10 October 2017