bonniergcuk 0 Share Posted October 21, 2020 Site URL: http://www.dolphinbottles.co.uk Hi, I was hoping to know if theres any code that when you click the mini logo in the right hand corner of the page it would auto-scroll back to the top of the page? The logo is fixed. Code is: <div id="dolphin-logo"> <img src="https://static1.squarespace.com/static/5efca1d4b38d327351cb3a48/t/5f80623086feca1a363d3f95/1602249265109/Untitled+design+%288%29+%281%29.png" width="110" height="55"> </div> #dolphin-logo { position: fixed; top: 90%; right: 0; left: 80%; transform: rotate(0deg) translateX(50%); transform-origin: 100% 0; z-index: 99999; } @media screen and (max-width: 960px) { #dolphin-logo { bottom: 2%; left: 40%; top: auto; } } Appreciate any help 🙂 Link to post
0 tuanphan 9,016 Solution Share Posted October 23, 2020 edit this <div id="dolphin-logo"> <img src="https://static1.squarespace.com/static/5efca1d4b38d327351cb3a48/t/5f80623086feca1a363d3f95/1602249265109/Untitled+design+%288%29+%281%29.png" width="110" height="55"> </div> to this <a id="dolphin-logo" href="#"> <img src="https://static1.squarespace.com/static/5efca1d4b38d327351cb3a48/t/5f80623086feca1a363d3f95/1602249265109/Untitled+design+%288%29+%281%29.png" width="110" height="55"> </a>  You can send your question to my email to get detail answer. / How to Setup Password & Share URL --- Happy New Year Link to post
Question
bonniergcuk 0
Site URL: http://www.dolphinbottles.co.uk
Hi,
I was hoping to know if theres any code that when you click the mini logo in the right hand corner of the page it would auto-scroll back to the top of the page?
The logo is fixed. Code is:
<div id="dolphin-logo">
<img src="https://static1.squarespace.com/static/5efca1d4b38d327351cb3a48/t/5f80623086feca1a363d3f95/1602249265109/Untitled+design+%288%29+%281%29.png" width="110" height="55">
</div>
#dolphin-logo {
position: fixed;
top: 90%;
right: 0;
left: 80%;
transform: rotate(0deg) translateX(50%);
transform-origin: 100% 0;
z-index: 99999;
}
@media screen and (max-width: 960px) {
#dolphin-logo {
bottom: 2%;
left: 40%;
top: auto;
}
}
Appreciate any help 🙂
Link to post
Top Posters For This Question
2
1
Popular Days
Oct 21
1
Oct 23
1
Oct 26
1
Top Posters For This Question
bonniergcuk 2 posts
tuanphan 1 post
Popular Days
Oct 21 2020
1 post
Oct 23 2020
1 post
Oct 26 2020
1 post
Posted Images
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment