Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS Custom JQuery ui-dialog

I need to add a 2 pixel border around the JQuery ui-dialog.

Could anyone help on what to modify please?

Thanks

like image 689
Satch3000 Avatar asked Apr 18 '11 14:04

Satch3000


2 Answers

Change the CSS rule for .ui-widget-content:

.ui-widget-content {
    border: 2px solid #DDD;
}

The least intrusive way to do this is to add that rule to your site's stylesheet (e.g. don't change the jQuery UI CSS file), and make sure that the jQuery UI CSS file is loaded first.

like image 78
Matt Ball Avatar answered Oct 17 '22 11:10

Matt Ball


To put a border around the dialog box, but not any other widget type, do this:

.ui-widget-content.ui-dialog
{
   border: 2px solid #DDD;
}
like image 29
idarke Avatar answered Oct 17 '22 13:10

idarke