Within my HTML pages, I am adjusting the font size using JavaScript code like this:
"document.body.style.fontSize = 100/50/20"
However, whenever the font size changes, the text content on the page moves up or down accordingly. This can be disorienting for the user as they may lose their place in the text.
Is there a way to ensure that the user remains at the same location in the text even after changing the font size?