SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working a custom master page. For some reason, the modal popups do not resize consistently in different browsers. The worst offender is Firefox, which renders the modal popup with no height. All you can see is the modal dialog's title. Everything works as expected when i use v4.master.

Any idea what i did wrong?

share|improve this question

There are two classes for styling modal dialogs that you need to know about.

  • .ms-dialog - This when added to a class will change the styles only in a modal dialog.

For eg:

.ms-dialog body #s4-ribbonrow {
  background-color: transparent;
  • s4-notdlg - This class when added with other classes in your master page, will eliminate that particular class from even appearing in the modal dialog.

Try adding either of them in your custom master page and check the difference in Firefox too.

Good Luck.

share|improve this answer
I appreciate the assistance. However, adding a width/height to .ms-dialog does not seem to have any affect in any browser. Maybe there is a child element/class of .ms-dialog i should be targeting, but i cannot find it. – Markus Mar 7 '12 at 20:08
i think you should be checking the details in Firebug from Firefox, which can tell you which class .ms-dialog should be applied for. – Deepu Nair Mar 8 '12 at 3:49
I had already been debugging with Firebug for hours. All changes inside the modal dialog's iframe (ie the ones inside .ms-dialog) have no effect on the dimensions of the modal dialog. All changes outside the iframe (ie .ms-dlgContent, .ms-dlgFrameContainer ...) are overwritten when SharePoint's javascript auto-resizes the modal dialog on launch. – Markus Mar 8 '12 at 14:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.