ryanbrinkerhoff Posted August 14, 2023 Share Posted August 14, 2023 My anchor links not working on mobile. They auto scroll, but scroll a little too far for each section. I tried messing with the code block margins but it seems to scroll to the bottom of the block, not the top. Help! https://www.grdowntownmarket.com/ Link to comment
Solution Lesum Posted August 14, 2023 Solution Share Posted August 14, 2023 (edited) @ryanbrinkerhoff Can you try to create the anchor using an id? For instance, you created the anchor for "Food" like this: <a name="food"></a> Can you try to create it like this instead? <div id="food"></div> Let me know if it works. Thanks! Edited August 14, 2023 by Lesum ryanbrinkerhoff 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
ryanbrinkerhoff Posted August 14, 2023 Author Share Posted August 14, 2023 It worked perfectly! You're the best! Lesum 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment