bonniergcuk Posted October 21, 2020 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 comment
tuanphan Posted October 23, 2020 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> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
bonniergcuk Posted October 26, 2020 Author Share Posted October 26, 2020 @tuanphanthanks so much 🙂 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.