Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi All Expert,
I have Problem for zoom the page.
If i open in Internet Explorer than it is working and if i open it in Mozilla Firefox it is not working.
My Code is
ClientScript.RegisterStartupScript(Me.GetType(), "dv", "var page = document.getElementById('dv'); page.style.zoom = '130%';", True)

Please help me what should be.........
Thanks in Advance
Posted
Comments
Sergey Alexandrovich Kryukov 13-Jun-12 3:23am    
All non-trivial modern browsers have zoom feature these days. Why not relying on it instead.
(Don't get me wrong -- there are certain cases when some intelligent zoom is needed, like in Google map... is this the case?)

Oh, I see, you are using "standard" zoom style. So, the question is: isn't it the best to trust the user selection of zoom? And make you page well tolerant to different zoom level?
--SA
Shahan Ayyub 17-Jun-12 17:15pm    
have you tried jQuery ?
Upniwesh 18-Jun-12 0:03am    
Thanks for caring my question.....
But now it's working...........

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900