I have an HTML/CSS screen that looks/works great when full-screened on a typical laptop monitor.
However, it was built using static sizes and many-a-css/JS hack. This means that when it's opened on larger monitors it looks tiny.
On the bigger monitor, If I view it in my browser and simply zoom in twice (CTL ++) the screen looks perfect once again.
Is there a JavaScript library that controls the zoom of the browser, based on the height of the viewport?
It only needs to work for Firefox, but cross-browser would be nice.
I'm aware that that is 'hacky', but that's perfectly fine in this situation.
I don't think this would take too much coding on my part, but I'm sure there's edge cases and fiddly bits here, and I'm trying to be as hands-off with this as I possible can be. Even if it's only a 10-liner, I'd prefer a library if one exists.
Thanks a lot.
Edit: I'm looking for a JS library that does this, preferably not a function.