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 have made a custom design on my sharepoint and everything works great. But if i add a new list item or anything that uses the dialog popup. Then it doesnt work.

Its like the dialog window inherits my custom design from the site and i cant see the formular in the dialog. Its like the design pushes away the formular in the dialog so i cant see it. I have added the class="notdlg" to try to hide my custom design in th edialog but that doesnt work either.

Anybody have a clue?

best regards/Stefan

share|improve this question
Have you tried to use Firebug or another element inspector to see which CSS-rules applies to the dialog? – tarjeieo Oct 19 '11 at 6:27
Did you wrap elements you don't want loading in the dialog by adding the CSS class s4-notdlg to them? – James Love Oct 19 '11 at 7:22

You can solve it by using another system masterpage (like v4), the quickest one. But you maybe want your custom masterpage. In that case you can override your css-styles like background for content shown in a modal (popup) dialog. Here is an example: body {
} ms-bodyareacell, #ctl00_MSO_ContentDiv, body #s4-mainarea, .s4-wpTopTable,
} body .ms-bodyareacell {

As you see all these css rules are only for usual elements in a popup dialog.

share|improve this answer
Hello again. Thanks for your help. But my design from the site are still in the dialogbox... I have now added class="notdlg" on every div but still it shows in my dialogs... – Stefan Oct 21 '11 at 5:52
"s4-notdlg", not just "notdlg". What is shown in your dialogs, which shouldnt be shown? – Anatoly Mironov Oct 21 '11 at 7:23

You can add this class s4-notdlg to those elements you don't want shown in the modal dialog, or do as Anatoly Mironov gave you an example on.

share|improve this answer
Exactly! But some stuff like body background-image, paddings must be overriden if it doesn't look well in the popup – Anatoly Mironov Oct 19 '11 at 7:50

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.