I am currently utilizing a PHP styleswitcher along with alternate stylesheets in an attempt to replicate the functionality of browser zoom (done using keyboard shortcuts cmd-plus or ctrl-plus).
At the moment, when clicking on the "zoom in" graphic, it is linked to an alternate stylesheet with the following CSS:
body {
zoom: 1.2; -moz-transform: scale(1.2); -moz-transform-origin: 0 0}
}
While this method works well, I am aiming for a link that triggers a relative zoom instead of an absolute value — meaning, I would like to establish a variable that captures the user's current zoom level and increases it by 120%. This way, the same link could be clicked multiple times to gradually increase the zoom level.
Is there any suggestion on how to accomplish this?