Solved

Remove Padding From MVC 4 Partial View in jQueryUI Dialog

Posted on 2013-06-11
3
534 Views
Last Modified: 2013-06-14
I'm need to remove the padding on a jQuery UI dialog container.
The dialog is being loaded by calling a partial view from the controller through the click event.  Meaning, my content does not exist when the page is rendered.  Not sure if that is the issue, but any help is appreciated.

var dialogStyle_StayDelete = { modal: true, width: 725, height: 500, show: captureConfig.defaultDialogShowEffect, hide: captureConfig.defaultDialogHideEffect, draggable: false, resizable: false, closeOnEscape: false };
    $('#modalMain-StayDelete').dialog(dialogStyle_StayDelete, {}).dialog("widget").find(".ui-dialog-titlebar").hide();

Open in new window

I've tried the following bit of code both before and after without any change.
$(".ui-dialog-content").css("padding", 0);

Open in new window

0
Comment
Question by:GenericCog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Expert Comment

by:HagayMandel
ID: 39240052
A link can help.
0
 

Author Comment

by:GenericCog
ID: 39248006
@HagayMandel, a link to what?
0
 
LVL 16

Accepted Solution

by:
HagayMandel earned 500 total points
ID: 39248235
If your'e using the default stylesheet, make sure to load YOUR stylesheet, with the following css rule, AFTER jquery-UI stylesheet is loaded.

.ui-dialog .ui-dialog-content {
    padding: 0;
}

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question