Making HTML page zoom by default


I've designed a page, where buttons look good when the browser zoom is at 90%, but by default other users view it at 100/125%+ in their browser which is resulting an overlap in buttons and input forms.

So, I want to set the zoom value as 90% by default when my JSP page loads.

How do I do this? After making any such setting can make the page non-zoomable? Or Is there any better solution for this?

This question is tagged with html css jsp

~ Asked on 2014-03-12 07:04:51

The Best Answer is


Solved it as follows,

in CSS

zoom: 100%;

Now, it loads in 100% zoom by default. Tested it by giving 290% zoom and it loaded by that zoom percentage on default, it's upto the user if he wants to change zoom.

Though this is not the best way to do it, there is another effective solution

Check the page code of stack over flow, even they have buttons and they use un ordered lists to solve this problem.

~ Answered on 2014-03-12 07:13:25


In js you can change zoom by"90%"

But it doesn't work in FF

For ff you can try

-moz-transform: scale(0.9);

And check next topic How can I zoom an HTML element in Firefox and Opera?

~ Answered on 2014-03-12 07:07:24

Most Viewed Questions: