Eight years ago, a user asked a similar question on this platform: DIV Horizontal scroll, how to onload to ID
The answer provided was:
document.getElementById('foo').scrollLeft = 500;
However, I am currently working on a Bootstrap 4 website that is fully responsive. The issue I am facing is that the width of each card within the scrolling div varies depending on the device.
Is there a new method available that allows me to move or scroll to a specific 'n'th div on page load?
https://i.sstatic.net/eM9ec.png
Also, like the original poster mentioned, my scrolling div is positioned halfway down the page, making a simple anchor link unsuitable ;(