Search code examples
c#asp.netfontsfont-size

avoid the auto increase font size c#


I am using MasterPage and using using a CSS in master page. My problem is in its content page, I have a messgage box comes up in some condition resulting FONT SIZE INCREASE. I do not have any font specification in my content page. I do not know how my content page font size change when I click on "OK" to my message box.

Please suggest me some solution.

Thanks


Solution

  • I got rid of it. Initially the problem cause was, click on 'ok' to message box which was generated by JavaScript 'alert'. I tried to put MessageBox from System.Windows.Forms reference. Using MessageBox ,got the solution.

    But I did not understand the reason, why using 'alert' was causing problem. If someone can throw light on it, it would be helpful for me and may be for others as well.