Zoom in and Zoom out issue in IE

Posted by Muhsinathk under CSS 3 on 6/7/2012 | Points: 10 | Views : 2084 | Status : [Member] | Replies : 4
Hi,
When i Zoom in or Zoom out on my aspx page in IE,its design breaks.But this issue does not exist in Mozilla Firefox.
Is there any solution?




Responses

Posted by: Johnbhatt on: 7/14/2012 [Member] Starter | Points: 25

Up
0
Down
Do you use any CSS code to Zoom or Directly windows Control Ctrl+Mouse Up or Zoom controls of IE. It is hard to say anything without knowing source.

John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Premalatha on: 7/16/2012 [Member] Starter | Points: 25

Up
0
Down
create javascript function

function bodyLoadEvent() {
this.form1.style.height = (parseInt(document.body.offsetHeight) - 5).toString() + "px";
this.form1.style.width = (parseInt(document.body.offsetWidth) - 5).toString() + "px";
document.getElementById("myhtmlbody").style.height = (parseInt(document.body.offsetHeight) - 5).toString() + "px";
document.getElementById("myhtmlbody").style.width= (parseInt(document.body.offsetWidth) - 5).toString() + "px";

}

and call this function on body load. i.e.
<body onload="bodyLoadEvent();">
<form id="form1" runat="server" style="height:100%;">
.......
</form>
</body>

Premalatha
Software Engineer

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 7/16/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down

Posted by: Ketvin on: 7/16/2012 [Member] Starter | Points: 25

Up
0
Down
Yea IE has all sorts of crazy problems.

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response