diff --git a/IPython/html/static/notebook/less/widgets.less b/IPython/html/static/notebook/less/widgets.less
index f75a9b548..75f7fcf7a 100644
--- a/IPython/html/static/notebook/less/widgets.less
+++ b/IPython/html/static/notebook/less/widgets.less
@@ -179,11 +179,6 @@ The widget area typically looks something like this:
min-width: 138px; /* + 26px drop arrow btn = 164px */
}
- /* ContainerWidget */
- .widget-container {
- .border-box-sizing();
- }
-
/* The following section sets the style for the invisible div that
hold widgets and their accompanying labels.
@@ -215,3 +210,19 @@ The widget area typically looks something like this:
}
}
}
+
+/* THE CLASSES BELOW CAN APPEAR ANYWHERE IN THE DOM */
+
+/* ContainerWidget - ModalView */
+.widget-modal {
+ overflow: hidden;
+ position: absolute !important;
+ top: 0px;
+ left: 0px;
+ margin-left: 0px !important;
+}
+
+/* ContainerWidget */
+.widget-container {
+ .border-box-sizing();
+}
\ No newline at end of file