diff --git dialog.module dialog.module
index ae9be9b..7e89994 100644
--- dialog.module
+++ dialog.module
@@ -35,7 +35,10 @@ function dialog_add_js() {
 
   // Add jquery_ui js and css.
   jquery_ui_add(array('ui.core', 'ui.resizable', 'ui.draggable', 'ui.dialog'));
-  drupal_add_css(JQUERY_UI_PATH .'/themes/base/ui.all.css');
+
+  // Get the correct CSS path.
+  $css_path = jquery_ui_get_version() == 1.6 ? 'default' : 'base';
+  drupal_add_css(JQUERY_UI_PATH ."/themes/$css_path/ui.all.css");
 
   // And finally, the dialog js.
   drupal_add_js(drupal_get_path('module', 'dialog') .'/dialog.js');
