Font Size Increase/Decrease change text location

Viewed 61

I have HTML pages, in which I am changing font size by using javascript syntax "document.body.style.fontSize = 20/50/100"

When I try to change the font size then the HTML moves text up/down according to font increase/decrease and the user is not able to persist at the same text at which the user was before changing the font size.

How can I make the user to stay at the same place as before?

0 Answers
Related