I have designed a website using a fixed width resolution. It works fine on most browsers and looks great (at least in my mind).
However, on some systems with very large screen resolutions, the text appears relatively small and the site looks a bit lost.
On modern browsers like Firefox and Safari I see the option to enlarge a website. Not just the text parts, but the entire site including images.
I wonder if it is possible to build this effect with JavaScript or access the API (is this correct term?) of the browsers to tell them to enlarge the website if a given screen resolution is used?
The zoom level of the browser is something that is strictly the domain of the user - it is bad practice to interfere with user-level choices such as page zoom, and usually you are technically unable to do so anyway. A user will zoom a webpage because they wanted to and an individual site should not (and can not) interfere with that choice.
Instead of trying to influence the user, you should seek to design your site in such a way so that a user doesn’t need to zoom to get a good experience.
There are a few things that will drive me away from a site (never to return) - 1 is Browser window resizing, another is auto start music I cant turn off. A definite third would be someone messing with my Browser preferences!
@Richard: No URL, I thought of simulating the effect of some modern browsers when pressing CTRL + or CTRL - (respectively CMD on Macs).
@DeltaDave: Many users aren’t aware of the ability to zoom in or out of a webpage. And in my mind this is an easy method to make a site responsive to the screen size.
The feature in question already exists-- and it’s built into all modern browsers. Users can set the zoom level of whole pages or just actual text… Check out the View menu of whatever browser you are using.
Instead of reinventing the wheel, you might be better of informing viewers who are ignorant of how their browser works and empower them to a whole new level of internet access.
Perhaps instead of buttons to scale things, how about a link which says “How to get the most from this site…” which leads the user to a page chock-full of ideas one tips for how they might maximize their experience there. This would clearly be adding user value to your site.
But for now, I’d say “mission accomplished” as far as your search for a zoom feature for your site. And it’s already built-in.