There is a long, long string enclosed in a div with overflow-x: scroll; . How to make a button, when clicked, the contents of the line will scroll sideways to the n-th number of pixels?
I do not need a ready answer, just a hint / hint :)
There is a long, long string enclosed in a div with overflow-x: scroll; . How to make a button, when clicked, the contents of the line will scroll sideways to the n-th number of pixels?
I do not need a ready answer, just a hint / hint :)
Source: https://ru.stackoverflow.com/questions/574282/
All Articles